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

비밀번호

댓글 작성자
 




... 166  167  168  [169]  170  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
910정성태8/19/201042649개발 환경 구성: 83. Hyper-V의 네트워크 유형 (1)
909정성태8/18/201037351오류 유형: 102. System.MissingMethodException
908정성태8/17/201028321개발 환경 구성: 82. Windows Virtual PC의 네트워크 유형 (3)
907정성태8/14/201025727개발 환경 구성: 81. Windows Virtual PC의 네트워크 유형 (2)
906정성태8/13/201033426개발 환경 구성: 80. Windows Virtual PC의 네트워크 유형 (1)
905정성태8/8/201037513Team Foundation Server: 39. 배치 파일로 팀 빌드 구성 [2]파일 다운로드1
904정성태8/8/201039691오류 유형: 101. SignTool Error: No certificates were found that met all the given criteria. [2]
903정성태8/6/201036612Team Foundation Server: 38. TFS 소스 코드 관리 기능 (4) - Branch
902정성태8/5/201029085Team Foundation Server: 37. TFS 2010의 소스 서버 수작업 구성
901정성태8/4/201028242Team Foundation Server: 36. TFS 소스 코드 관리 기능 (3) - Label
900정성태8/3/201031167Team Foundation Server: 35. TFS 소스 코드 관리 기능 (2) - Shelveset
899정성태8/2/201032722Team Foundation Server: 34. TFS 소스 코드 관리 기능 (1) - Changeset
898정성태7/31/201032902.NET Framework: 182. WCF의 InactivityTimeout [1]파일 다운로드1
897정성태7/26/201133826.NET Framework: 181. AssemblyVersion, AssemblyFileVersion, AssemblyInformationalVersion [4]
896정성태7/25/201040917.NET Framework: 180. C# Singleton 인스턴스 생성 [2]
895정성태7/25/201024579VS.NET IDE: 68. Visual Studio 2010 - .NET 1.1 원격 디버깅
894정성태7/25/201030507오류 유형: 100. Could not find the Database Engine startup handle. [1]
893정성태7/25/201031383오류 유형: 99. .NET 4.0 설치된 윈도우 7에서 SQL Server 2008 R2 설치 오류
892정성태7/9/201032513오류 유형: 98. 영문 윈도우에 한글 SQL Server 2008 R2 설치할 때 오류 [4]
891정성태7/8/201029018오류 유형: 97. MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{...}'. Error code: 1605. [2]
889정성태7/5/201030835.NET Framework: 179. Dictionary.Get(A) 대신 Dictionary.Get(A.GetHashCode())를 사용해서는 안 되는 이유 [1]
888정성태6/30/201028463오류 유형: 96. Hyper-V 연결 오류 - A connection will not be made because credentials may not be sent to the remote computer
887정성태6/23/201038322개발 환경 구성: 79. Hyper-V의 가상 머신에서 소리 재생 방법 [2]
886정성태6/23/201026315제니퍼 .NET: 14. ASMX, WCF 호출 모니터링 및 누수 확인
885정성태6/20/201028344개발 환경 구성: 78. COM+ 서버에서 COM+ 서버를 호출하는 방법
884정성태6/20/201030941제니퍼 .NET: 13. COM+ 서버 모니터링 [2]
... 166  167  168  [169]  170  171  172  173  174  175  176  177  178  179  180  ...