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

Visual Studio - 닷넷 응용 프로그램 디버깅 시 Disassembly 창에서 BP 설정할 때 "Error while processing breakpoint." 오류

닷넷 응용 프로그램 디버깅 중에도, Debug / Windows / Disassembly (단축키: Ctrl + Alt + D) 창을 열 수 있고 마찬가지로 "Address" 영역에 유효한 함수의 위치를 넣는다면 native 영역도 탐색할 수 있습니다.

하지만, 해당 창에서 BP를 걸려고 하면 이렇게 오류가 발생합니다.

invalid_bp_error_in_vs_1.png

The breakpoint is not valid. Error while processing breakpoint.

The following breakpoint cannot be set:

At 0x722DFD81 

Error while processing breakpoint.

왜냐하면, 기본 설정의 닷넷 디버깅 시에는 native 디버깅 능력이 꺼져 있기 때문입니다. 이것이 가능하려면 프로젝트 설정의 Debug 탭에서 "Enable native code debugging", 또는 예전 이름인 "Enable unmanaged code debugging" 옵션을 켜야 합니다.

vs2010_support_mixedmodedebug_on_x64_1.png

이후, 다시 시도하면 BP가 걸립니다.




그런데, 모든 native 영역에 BP가 걸리는 것은 아닙니다. 예외적으로 clr.dll 내의 코드는 비주얼 스튜디오에서 BP를 걸 수 없습니다.

invalid_bp_error_in_vs_3.png

The breakpoint will not currently be hit. Breakpoints in module clr.dll are not allowed. This module contains the implementation for the underlying runtime that you are trying to debug.


비주얼 스튜디오 자체도 닷넷으로 만들어져 있고, 디버깅 중 clr.dll 내의 코드를 호출한다는 면에서 볼 때 이해가 되는 제약입니다. 만약, clr.dll에도 BP를 걸고 싶다면 비주얼 스튜디오가 아닌 windbg를 사용해야 합니다.




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







[최초 등록일: ]
[최종 수정일: 11/3/2020]

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

비밀번호

댓글 작성자
 




... 181  182  183  184  185  186  187  188  [189]  190  191  192  193  194  195  ...
NoWriterDateCnt.TitleFile(s)
296정성태7/10/200630547.NET Framework: 73. [ASP.NET] HTC(DHTML Control Behavior)를 WebResource.axd로 제공하는 방법 [3]
295정성태7/1/200623795VC++: 25. Microsoft National Language Support Downlevel APIs 1.0 사용 방법파일 다운로드1
294정성태6/30/200620329.NET Framework: 72. XSDObjectGen.EXE 기능 개선
293정성태6/29/200622146Team Foundation Server: 10. TFS 버전 컨트롤(TFVC)에 참여시킨 프로젝트의 로컬 경로를 옮기는 방법
290정성태6/26/200619562Team Foundation Server: 9. HTTPS를 통한 Team Server 접근 - 두 번째 이야기 [1]
291정성태6/26/200620812    답변글 Team Foundation Server: 9.1. [선행 작업] HTTPS 를 통한 Team Server 접근 - 두번째 이야기 [1]
292정성태6/26/200620421    답변글 Team Foundation Server: 9.2. TF30177 오류 발생
307정성태8/3/200622268    답변글 Team Foundation Server: 9.3. Team Server 접근 이름을 바꾸는 방법 [1]파일 다운로드1
308정성태2/18/200722042        답변글 Team Foundation Server: 9.4. Team Server HTTPS 접근 완료. ^^ [1]
288정성태6/26/200636713오류 유형: 10. error MSB6006: "aspnet_merge.exe" exited with code 1
286정성태6/23/200624734웹: 4. 웹 사이트 식별자(Identifier) 값 변경
285정성태6/20/200625066오류 유형: 9. [TFS] Report 관련 서비스를 조회할 때 rsErrorImpersonatingUser 오류 메시지 발생 [1]
284정성태6/19/200622792VS.NET IDE: 40. FxCop - IDE 에서 제공해 주는 SuppressMessage 코드
283정성태1/19/200723997Team Foundation Server: 8. 소스 세이프에서 TFS SourceControl 로 마이그레이션 [2]
279정성태12/27/200629677개발 환경 구성: 3. VS.NET 원격 디버깅 [1]
280정성태6/12/200628771    답변글 개발 환경 구성: 3.1. VS.NET 2003 원격 디버깅 설정
281정성태8/11/200630321    답변글 개발 환경 구성: 3.2. VS.NET 2005 원격 디버깅 설정
315정성태8/11/200630901        답변글 개발 환경 구성: 3.3. VS.NET 2005 원격 디버깅 설정 - ASP.NET F5 디버깅
278정성태6/11/200627331오류 유형: 8. [Outlook] 0x8004011D 에러 - "Exchange over the Internet" 환경
276정성태6/7/200620470Team Foundation Server: 7. 외부 빌드 머신 구성
287정성태6/24/200618086    답변글 Team Foundation Server: 7.1. 외부 빌드 머신 구성 - 다른 블로그 자료
275정성태6/7/200626191디버깅 기술: 4. VC++ 8.0 원격 디버깅 구성 - Side-by-Side DLL 문제.
269정성태6/6/200623329Team Foundation Server: 6. HTTPS를 통한 Team Server 접근 [1]
270정성태6/5/200620412    답변글 Team Foundation Server: 6.1. HTTPS를 통한 Team Server 접근 [1]
273정성태6/6/200623176    답변글 Team Foundation Server: 6.2. 두번째 방법 - HTTPS 를 통한 Team Server 접근 [1]
267정성태6/4/200622650Team Foundation Server: 5. 인터넷으로 Team Server 접근 [2]
... 181  182  183  184  185  186  187  188  [189]  190  191  192  193  194  195  ...