F5或在命令输入g,运行。
F9在代码光标所在行下断点。
bl列出所有断点
bc *删除所有断点
bc 0 删除0号断点
0n(十进制) 0x(十六进制) 0t(8进制) 0y(2进制) 可以使用n [8|10|16]命令来修改数值进制表示方式(输入n可查看当前进制,默认为16进制)
dt - dump symbolic type information.
dt [[-ny] [!][]] [[-ny] ] [
[-l ] [-abcdehioprstv]
dt !Ty* Lists all Types, Globals and Statics of prefix Ty in
-v with this also lists symbols without type info.
d, da, db, dc, dd, dD, df, dp, dq, du, dw, dW, dyb, dyd (Display Memory)
The d* commands display the contents of memory in the given range.
Syntax
d{a|b|c|d|D|f|p|q|u|w|W} [Options] [Range]
dy{b|d} [Options] [Range]
d [Options] [Range]
Command Display
dd Double-word values (4 bytes).
The default count is 32 DWORDs (128 bytes).
x (Examine Symbols)
The x command displays the symbols in all contexts that match the specified pattern.
Syntax
x [Options] Module!Symbol
x

本文介绍了Windbg调试工具的一些基本操作,包括使用F5/G命令运行程序,F9设置断点,使用bl/bc管理断点,通过n命令切换数值进制,dt命令显示类型信息,以及d*/x命令进行内存和符号的查看。这些技巧对于深入理解程序运行状态和调试问题非常有用。

5426

被折叠的 条评论
为什么被折叠?



