Microsoft MVP성태의 닷넷 이야기
VS.NET IDE: 64. Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원 [링크 복사], [링크+제목 복사],
조회: 26886
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 


Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원


Visual Studio 2010에서는 디버깅에 대한 지원도 한층 강화됩니다.

Debugger Changes in Visual Studio 2010 Beta 1
; http://blogs.msdn.com/brads/archive/2009/05/28/debugger-changes-in-visual-studio-2010-beta-1.aspx

위의 글에서 소개된 디버깅 기능 중에서 "Threads Window"라는 것은 이전에 설명해 드린 "Parallel Stacks" 윈도우를 말하는 것이겠지요.

Visual Studio 2010 - Parallel Stacks
; https://www.sysnet.pe.kr/2/0/730

이번에는 "64-bit Mixed-Mode Debugging"이라는 것을 소개해드리겠습니다.

바로 저처럼 ^^ native 언어와 managed 언어를 같이 다루는 분들이라면, 척 봤을 때... 이 기능을 반가워하셨을 텐데요. 그렇습니다. 드디어 Visual Studio 2010에서는 64비트 환경에서도 혼합 모드 디버깅을 지원합니다.

의아해하시는 분들을 위해 잠시 설명드리자면.

기존(?)의 Visual Studio 2008을 x64 운영체제에 설치하였을 때, .NET EXE 프로젝트를 만들어서 아래와 같이 "Enable unmanaged code debugging" 옵션을 켜고 디버깅을 시작하면,

[그림 1: x64 운영체제에서 "Enable unmanaged code debugging" 디버깅]
vs2010_support_mixedmodedebug_on_x64_1.png

대번에, 다음과 같은 오류창을 보게 됩니다.

[그림 2: Visual Studio 2008에서의 혼합 모드 디버깅 오류]
vs2010_support_mixedmodedebug_on_x64_2.png

"
Error while trying to run project: Unable to start program '.....exe'.
The debugger does not support debugging managed and native code at the same time on this platform.
"



이를 우회적으로 해결하는 방법으로는 다음과 같이 필요할 때에만 일시적으로 "Platform target" 지정을 "x86"으로 해주면 됩니다.

[그림 3: 32비트로 빌드 후 혼합 모드로 디버깅]
vs2010_support_mixedmodedebug_on_x64_3.png

좀 불편했었지요.

그런데, 이것이 Visual Studio 2010에서는 깨끗하게 해결이 되었습니다.

아래는 Visual Studio 2010 Beta1에서 본 mixed-mode 디버깅 상태를 보여주고 있습니다.

[그림 4: Visual Studio 2010에서 본 혼합 모드 디버깅 지원]
vs2010_support_mixedmodedebug_on_x64_4.png

그러고 보니... 예전에도 이와 비슷한 글을 쓴 적이 있군요. ^^

VS.NET 2005 - x64 환경에서의 mixed 디버깅 환경 구성
; https://www.sysnet.pe.kr/2/0/485




마치기 전에 아직 못 보신 분들을 위해 부가 소식을 전해드리면. ^^ (2번째 그림이 마음에 드실 겁니다.)

Having Fun with the New Editor in VS 2010
; http://blogs.msdn.com/kirillosenkov/archive/2009/07/14/having-fun-with-the-new-editor-in-vs-2010.aspx





[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 4/10/2022]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13545정성태1/30/20242144닷넷: 2212. ASP.NET Core - 우선순위에 따른 HTTP/HTTPS 호스트:포트 바인딩 방법
13544정성태1/30/20242176오류 유형: 894. Microsoft.Data.SqlClient - Could not load file or assembly 'System.Security.Permissions, ...'
13543정성태1/30/20242210Windows: 254. Windows - 기본 사용 중인 5357 포트 비활성화는 방법
13542정성태1/30/20242223오류 유형: 893. Visual Studio - Web Application을 실행하지 못하는 IISExpress - 두 번째 이야기
13541정성태1/29/20242328VS.NET IDE: 188. launchSettings.json의 useSSL 옵션
13540정성태1/29/20242471Linux: 69. 리눅스 - "Docker Desktop for Windows" Container 환경에서 IPv6 Loopback Address 바인딩 오류
13539정성태1/26/20242428개발 환경 구성: 703. Visual Studio - launchSettings.json을 이용한 HTTP/HTTPS 포트 바인딩
13538정성태1/25/20242540닷넷: 2211. C# - NonGC(FOH) 영역에 .NET 개체를 생성파일 다운로드1
13537정성태1/24/20242645닷넷: 2210. C# - Native 메모리에 .NET 개체를 생성파일 다운로드1
13536정성태1/23/20242680닷넷: 2209. .NET 8 - NonGC Heap / FOH (Frozen Object Heap) [1]
13535정성태1/22/20242578닷넷: 2208. C# - GCHandle 구조체의 메모리 분석
13534정성태1/21/20242342닷넷: 2207. C# - SQL Server DB를 bacpac으로 Export/Import파일 다운로드1
13533정성태1/18/20242535닷넷: 2206. C# - TCP KeepAlive의 서버 측 구현파일 다운로드1
13532정성태1/17/20242439닷넷: 2205. C# - SuperSimpleTcp 사용 시 주의할 점파일 다운로드1
13531정성태1/16/20242406닷넷: 2204. C# - TCP KeepAlive에 새로 추가된 Retry 옵션파일 다운로드1
13530정성태1/15/20242272닷넷: 2203. C# - Python과의 AES 암호화 연동파일 다운로드1
13529정성태1/15/20242162닷넷: 2202. C# - PublishAot의 glibc에 대한 정적 링킹하는 방법
13528정성태1/14/20242330Linux: 68. busybox 컨테이너에서 실행 가능한 C++, Go 프로그램 빌드
13527정성태1/14/20242239오류 유형: 892. Visual Studio - Failed to launch debug adapter. Additional information may be available in the output window.
13526정성태1/14/20242327닷넷: 2201. C# - Facebook 연동 / 사용자 탈퇴 처리 방법
13525정성태1/13/20242290오류 유형: 891. Visual Studio - Web Application을 실행하지 못하는 IISExpress
13524정성태1/12/20242353오류 유형: 890. 한국투자증권 KIS Developers OpenAPI - GW라우팅 중 오류가 발생했습니다.
13523정성태1/12/20242161오류 유형: 889. Visual Studio - error : A project with that name is already opened in the solution.
13522정성태1/11/20242296닷넷: 2200. C# - HttpClient.PostAsJsonAsync 호출 시 "Transfer-Encoding: chunked" 대신 "Content-Length" 헤더 처리
13521정성태1/11/20242369닷넷: 2199. C# - 한국투자증권 KIS Developers OpenAPI의 WebSocket Ping, Pong 처리
13520정성태1/10/20242149오류 유형: 888. C# - Unable to resolve service for type 'Microsoft.Extensions.ObjectPool.ObjectPool`....'
1  2  3  [4]  5  6  7  8  9  10  11  12  13  14  15  ...