Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Visual Studio에서 windbg의 "Open Executable..."처럼 EXE를 직접 열어 디버깅을 시작하는 방법

Visual Studio에서 exe 파일을 열면 리소스 뷰어로 보는 기능이 있습니다.

vb_manifest_2.png

또는 탐색기에서 exe 파일을 비주얼 스튜디오에 끌어다 놓으면 기본적으로 다음과 같이 Solution Explorer에 exe 파일 항목이 추가되면서,

exe_debug_start_1.png

"Debug" / "Start Debugging (단축키 F5)" 메뉴를 선택하면 EXE 파일을 실행하면서 디버그 상태로 진입합니다.




그런데, (규칙을 알 수 없었지만) 어떤 경우에는 비주얼 스튜디오에 EXE 파일을 끌어다 놓는 경우 그냥 리소스 뷰어로 열릴 때가 있습니다. 이런 경우에는 직접 "File" 쪽 메뉴를 통해 열어야 하는데요, 다음의 문서에서 이에 관해 설명하고 있습니다.

Debug an app that isn't part of a Visual Studio solution (C++, C#, Visual Basic, F#)
; https://learn.microsoft.com/ko-kr/visualstudio/debugger/how-to-debug-an-executable-not-part-of-a-visual-studio-solution?view=vs-2019

사실, 직관적이지 않아서 그렇지 그냥 단순하게 "File" / "Open" / "Project/Solution... (단축키 Ctrl+Shift+O)" 메뉴를 선택해 (이름과는 달리) EXE 파일을 지정해 열면 됩니다.




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







[최초 등록일: ]
[최종 수정일: 3/9/2024]

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

비밀번호

댓글 작성자
 




... 106  107  108  109  110  111  112  113  114  [115]  116  117  118  119  120  ...
NoWriterDateCnt.TitleFile(s)
11086정성태11/1/201620463오류 유형: 366. The Microsoft Passport Container service terminated with the following error: General access denied error
11085정성태10/27/201635333.NET Framework: 615. C# - AForge.NET을 이용한 웹캠 영상 출력 [2]파일 다운로드1
11084정성태10/26/201623070오류 유형: 365. The User Profile Service service failed to the sign-in.
11083정성태10/26/201629457Windows: 131. 윈도우 10에서 사라진 "Adapters and Bindings" 네트워크 우선 순위 조정 기능 [1]
11082정성태10/26/201631918.NET Framework: 614. C# - DateTime.Ticks의 정밀도 [4]파일 다운로드1
11081정성태10/26/201621960오류 유형: 364. You need to fix your Microsoft Account for apps on your other devices to be able to launch apps and continue experiences on this device.
11080정성태10/24/201625470Windows: 130. Windows Server 2016 Nano 서버 설치 방법
11079정성태10/21/201622591Windows: 129. Windows Server 2016 설치 CD에 있는 Convert-WindowsImage.ps1 사용 방법 정리
11078정성태10/21/201623798Windows: 128. Windows Server 2016 Nano 서버 VHD 이미지 만드는 방법 - TP5 기준
11077정성태10/21/201622067오류 유형: 363. Active Directory 서버의 NETLOGON 서비스가 멈췄을 때 발생하는 문제
11076정성태10/21/201621721오류 유형: 362. 윈도우 백업 시 오류 - 0x80780040
11075정성태10/20/201621989Windows: 127. Convert-WindowsImage.ps1 사용 방법 정리
11074정성태10/20/201631086Windows: 126. Windows Server 2016 평가판을 정식 버전으로 라이선스 변경하는 방법
11073정성태10/20/201627363.NET Framework: 613. 윈도우 데스크톱 응용 프로그램(예: Console)에서 알림 메시지(Toast notifications) 띄우기 [1]파일 다운로드1
11072정성태10/20/201624278VC++: 102. 새로 추가한 ATL COM 객체가 regsvr32.exe로 등록이 안 되는 문제
11071정성태10/20/201627357.NET Framework: 612. UWP(유니버설 윈도우 플랫폼) 앱에서 콜백 함수 내에서의 UI 요소 접근 방법 [1]
11070정성태10/20/201620781Windows: 125. 윈도우 서버 2016 마이그레이션
11069정성태10/19/201628842.NET Framework: 611. C++ 개발자들을 위한 C# Thread 동작 방식 [2]
11068정성태10/19/201632034Windows: 124. 윈도우 운영체제의 시간 함수 (5) - TSC(Time Stamp Counter)와 QueryPerformanceCounter [12]파일 다운로드1
11067정성태10/18/201627844Windows: 123. 윈도우 운영체제의 시간 함수 (4) - RTC, TSC, PM Clock, HPET Timer [2]
11066정성태10/17/201626429Windows: 122. 윈도우 운영체제의 시간 함수 (3) - QueryInterruptTimePrecise, QueryInterruptTime 함수파일 다운로드1
11065정성태10/15/201631525Windows: 121. 윈도우 운영체제의 시간 함수 (2) - Sleep 함수의 동작 방식 [1]
11064정성태10/14/201623475.NET Framework: 610. C# - WaitOnAddress Win32 API 사용파일 다운로드1
11063정성태10/14/201639479Windows: 120. 윈도우 운영체제의 시간 함수 (1) - GetTickCount와 timeGetTime의 차이점 [5]파일 다운로드1
11062정성태10/12/201619449오류 유형: 361. WCF .svc 호출 시 Could not find a base address that matches scheme net.tcp 예외
11061정성태10/12/201632235오류 유형: 360. IIS - 500.19 오류 (0x80070021)
... 106  107  108  109  110  111  112  113  114  [115]  116  117  118  119  120  ...