运行程序 |
runs [args] |
F5:Start Debugging (开始调试) |
启动程序 |
start [atgs] |
F10:Step over (逐过程) |
暂停 |
Ctrl+C |
Ctrl-Alt+Break:Break All (全部中断) |
继续运行 |
continue(cont, c) |
F5:Continue (继续) |
step over |
next |
F10:Step over (逐过程) |
step into |
step |
F11:Step into (逐语句) |
step out |
finish |
F11:Step into ; Shift+F11:Step out |
断点 |
break file:lineno |
右击Breakpoint/Insert Breakpoint (断点/插入断点) |
跟踪点 |
watch file:lineno |
右击Breakpoint/Insert Tracepoint (断点/插入跟踪点) |
观察点 |
watch expr |
Debug/New Bkpt/New Dat Bkpt (调试/新建断点/新建数据断点) |
栈跟踪 |
backtrace(bt), where |
Call Stack (条用堆栈) |
输出表达式 |
print expr |
Immediate Window (及时窗口) |
显示表达式 |
display expr |
Watch 监视窗口 |
设置环境 |
set var var=expr |
Variables 变量窗口 |
设置环境变量 |
set env var[=val] |
Properties/Debugging/Environment (属性/调试/环境) |
显示机器代码 |
disassemble |
右击Go to Disassembly (转到反汇编) |
在机器代码中执行step-over |
nexti |
F10:Step over |
在机器代码中执行step-into |
stepi |
F11:Step into |