Windbg使用日志

来源:互联网 发布:管制刀具的定义为淘宝 编辑:程序博客网 时间:2024/05/07 05:47

如何使用Windbg设置触发次数的条件断点

1) Go to the source view and set a breakpoint in the source code.  The shortcut F9 can be used to toggle a breakpoint.

2) In the command window (alt + 1), list all breakpoints using the bl command or using .bpcmds to show all commands defining break points.

3) Take note of the breakpoint that you just set and copy the location of the breakpoint which is listed in the format of <module_name>!<function_name>+<offset>.  See example below.

4) Now redefine the breakpoint with the bp command.  After thebp command paste the location that you copied in the previous step followed by the hit count.


检查死锁

先用~*kb(或者~*kv)查看下所有的线程堆栈:

~1kv

原创粉丝点击