2015. 1. 12. 11:38

Debugging windows services

using psexec

psexec –sd –i 0 "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86\msvsmon.exe" /noauth /anyuser /silent


download psexec 


How to debug Windows services with Windbg




2012. 10. 4. 09:45

resolving C++ Template names

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

  • 문제
    • JIT 는 target process 와 동일한 session으로 시작한다.
    • Session 0 의 process와 사용자와 interact 가 불가능하므로 해당 debugger도 마찬가지 상황에 직면한다.
  • 해결 방안
    • JIT의 registry 항목에 꼭 실제 debugger 프로그램이 들어가야 하는 것은 아니다.
    • cmd 를 JIT debugger로 설정한다.
    • crash 발생 시 windbg로 target process에 attach 하며 분석을 한다.