Windbg에서 조건문 bp
2008/06/18 08:38
MSDN 블러그를 보다 보니...
Windgb로 조건문 bp 사용에 대해 자세한 설명을 해놓았다.
http://blogs.msdn.com/debuggingtoolbox/archive/2008/06/12/special-command-if-and-j-to-use-in-breakpoints-and-scripts.aspx
특정 지점에서 10번째 카운터에서 bp를 잡는 예제를 아래와 같이 써두었는데...
r @$t0 = 0
bp mtgdi!CBallThread::SingleStep "r @$t0 = @$t0 + 1;.if(@$t0 > 0n10){.echo More than 10 times...}.else{ gc }"
누군가 달아놓은 코멘트가 압권...
bp mtgdi!CBallThread::SingleStep 10
딸랑 이 한줄이면 된단다.
하아...
Trackback Address :: 이 글에는 트랙백을 보낼 수 없습니다
관리자만 볼 수 있는 댓글입니다.