'text/debug'에 해당되는 글 3건
- 2015.01.12 Debugging windows services
- 2012.10.04 resolving C++ Template names
- 2012.09.24 JIT Debugging in Session 0
2015. 1. 12. 11:38
Debugging windows services
2015. 1. 12. 11:38 in text/debug
using psexec
psexec –sd –i 0 "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /noauth /anyuser /silent
How to debug Windows services with Windbg
2012. 10. 4. 09:45
resolving C++ Template names
2012. 10. 4. 09:45 in text/debug
template function 에 break point를 설정하는 경우 bp test<a> ...
'<' 가 redirection character로 인식이 되어 해당 명령이 실패한다.
이 경우 bp @!" test<a> ..." 문자를 이용하면 break point 가 설정이 된다.
물론 x 명령어를 이용하여 해당 function 의 주소값을 입력하는 방안되 있다.
2012. 9. 24. 16:30
JIT Debugging in Session 0
2012. 9. 24. 16:30 in text/debug
- 문제
- JIT 는 target process 와 동일한 session으로 시작한다.
- Session 0 의 process와 사용자와 interact 가 불가능하므로 해당 debugger도 마찬가지 상황에 직면한다.
- 해결 방안
- JIT의 registry 항목에 꼭 실제 debugger 프로그램이 들어가야 하는 것은 아니다.
- cmd 를 JIT debugger로 설정한다.
- crash 발생 시 windbg로 target process에 attach 하며 분석을 한다.