Microsoft MVP성태의 닷넷 이야기
VS.NET IDE: 64. Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원 [링크 복사], [링크+제목 복사],
조회: 27031
글쓴 사람
정성태 (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

비밀번호

댓글 작성자
 




... 16  17  18  19  20  21  22  23  24  [25]  26  27  28  29  30  ...
NoWriterDateCnt.TitleFile(s)
13027정성태4/12/20227382.NET Framework: 1192. C# - 환경 변수의 변화를 알리는 WM_SETTINGCHANGE Win32 메시지 사용법파일 다운로드1
13026정성태4/11/20228930.NET Framework: 1191. C 언어로 작성된 FFmpeg Examples의 C# 포팅 전체 소스 코드 [3]
13025정성태4/11/20228230.NET Framework: 1190. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 vaapi_encode.c, vaapi_transcode.c 예제 포팅
13024정성태4/7/20226693.NET Framework: 1189. C# - 런타임 환경에 따라 달라진 AppDomain.GetCurrentThreadId 메서드
13023정성태4/6/20227035.NET Framework: 1188. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 transcoding.c 예제 포팅 [3]
13022정성태3/31/20226962Windows: 202. 윈도우 11 업그레이드 - "PC Health Check"를 통과했지만 여전히 업그레이드가 안 되는 경우 해결책
13021정성태3/31/20227158Windows: 201. Windows - INF 파일을 이용한 장치 제거 방법
13020정성태3/30/20226937.NET Framework: 1187. RDP 접속 시 WPF UserControl의 Unloaded 이벤트 발생파일 다운로드1
13019정성태3/30/20226919.NET Framework: 1186. Win32 Message를 Code로부터 메시지 이름 자체를 구하고 싶다면?파일 다운로드1
13018정성태3/29/20227409.NET Framework: 1185. C# - Unsafe.AsPointer가 반환한 포인터는 pinning 상태일까요? [5]
13017정성태3/28/20227167.NET Framework: 1184. C# - GC Heap에 위치한 참조 개체의 주소를 알아내는 방법 - 두 번째 이야기 [3]
13016정성태3/27/20228138.NET Framework: 1183. C# 11에 추가된 ref 필드의 (우회) 구현 방법파일 다운로드1
13015정성태3/26/20229409.NET Framework: 1182. C# 11 - ref struct에 ref 필드를 허용 [1]
13014정성태3/23/20227974VC++: 155. CComPtr/CComQIPtr과 Conformance mode 옵션의 충돌 [1]
13013정성태3/22/20226217개발 환경 구성: 641. WSL 우분투 인스턴스에 파이썬 2.7 개발 환경 구성하는 방법
13012정성태3/21/20225565오류 유형: 803. C# - Local '...' or its members cannot have their address taken and be used inside an anonymous method or lambda expression
13011정성태3/21/20227150오류 유형: 802. 윈도우 운영체제에서 웹캠 카메라 인식이 안 되는 경우
13010정성태3/21/20225997오류 유형: 801. Oracle.ManagedDataAccess.Core - GetTypes 호출 시 "Could not load file or assembly 'System.DirectoryServices.Protocols...'" 오류
13009정성태3/20/20227687개발 환경 구성: 640. docker - ibmcom/db2 컨테이너 실행
13008정성태3/19/20226989VS.NET IDE: 176. 비주얼 스튜디오 - 솔루션 탐색기에서 프로젝트를 선택할 때 csproj 파일이 열리지 않도록 만드는 방법
13007정성태3/18/20226552.NET Framework: 1181. C# - Oracle.ManagedDataAccess의 Pool 및 그것의 연결 개체 수를 알아내는 방법파일 다운로드1
13006정성태3/17/20227688.NET Framework: 1180. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 remuxing.c 예제 포팅
13005정성태3/17/20226513오류 유형: 800. C# - System.InvalidOperationException: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.
13004정성태3/16/20226520디버깅 기술: 182. windbg - 닷넷 메모리 덤프에서 AppDomain에 걸친 정적(static) 필드 값을 조사하는 방법
13003정성태3/15/20226604.NET Framework: 1179. C# - (.NET Framework를 위한) Oracle.ManagedDataAccess 패키지의 성능 카운터 설정 방법
13002정성태3/14/20227433.NET Framework: 1178. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 http_multiclient.c 예제 포팅
... 16  17  18  19  20  21  22  23  24  [25]  26  27  28  29  30  ...