Microsoft MVP성태의 닷넷 이야기
VS.NET IDE: 64. Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원 [링크 복사], [링크+제목 복사],
조회: 32579
글쓴 사람
정성태 (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)
530정성태9/1/200722604.NET Framework: 94. WCF 예외에 대한 시행착오
529정성태8/31/200725435.NET Framework: 93. WCF - DataContract와 KnownType 특성 [1]
528정성태8/30/200720096오류 유형: 47. VPC - 네트워크 어댑터 MAC 주소 중복 오류
527정성태8/30/200730107Team Foundation Server: 20. 잠긴 파일을 강제로 해제 [2]
526정성태8/29/200720028오류 유형: 46. VS.NET 2008 - ASP.NET 디버깅 : Strong name validation failed.
525정성태8/27/200722318VS.NET IDE: 54. VS.NET 2008 - 새롭게 도입되는 XSD Schema Designer
524정성태8/23/200739835오류 유형: 45. 요청한 작업은, 사용자가 매핑한 구역이 열려 있는...
523정성태8/16/200722479VS.NET IDE: 53. VS.NET 2008 - 서비스 참조 시 기존 데이터 컨테이너 DLL 사용
522정성태8/13/200726109VS.NET IDE: 52. VS.NET 2008 - WCF를 위한 디버깅 환경 개선
521정성태8/8/200726241.NET Framework: 92. XmlSerializer 생성자의 실행 속도를 올리는 방법 - 두 번째 이야기 [3]
520정성태8/7/200721367VS.NET IDE: 51. Visual Studio 2008 베타 2 설치
519정성태7/27/200727737오류 유형: 44. System.BadImageFormatException [2]
518정성태7/26/200728691오류 유형: 43. System.ComponentModel.LicenseException [1]
517정성태7/19/200716968개발 환경 구성: 26. VPC - 일반 사용자 계정으로 구동
516정성태7/19/200720257오류 유형: 42. TFS - Error loading menu: Index was outside the bounds of the array [2]
515정성태7/18/200727928오류 유형: 41. SSL 서버 자격 증명을 만드는 동안 심각한 오류가 발생했습니다.
514정성태7/14/200720587Team Foundation Server: 19. Orcas에서 개선되는 TFS 기능들
513정성태7/4/200731573.NET Framework: 91. Foreground Thread / Background Thread [1]
512정성태6/27/200721637오류 유형: 40. error PRJ0050: Failed to register output.
511정성태6/25/200729567.NET Framework: 90. XmlSerializer 생성자의 실행 속도를 올리는 방법 [2]
510정성태6/25/200744447디버깅 기술: 15. First-Chance Exception
508정성태6/21/200727411Team Foundation Server: 18. Team Build에 사용되는 각종 Property 값 [4]
507정성태6/11/200725027VS.NET IDE: 50. Orcas - UAC 설정 관련
506정성태6/9/200720215오류 유형: 39. VC Package not available or not registered
505정성태6/9/200719803오류 유형: 38. Visual SourceSafe - DB 잠김 오류
504정성태6/9/200725112오류 유형: 37. Visual SourceSafe - Anaylze 도중 비정상 종료
... 166  167  168  169  170  171  172  173  174  175  176  177  [178]  179  180  ...