调试命令

VS2015

F10 step out
F11 step into

codeblocks

shitf F7 step into
F7 step

gdb

next 执行下一行语句
step 同上,有函数则会进入函数
run 运行到断点处
breakpoint 下断点
start 停在main的第一行语句前
print 打印变量
display 跟踪一个变量
undisplay 取消跟踪
info locals 查看局部变量
list 列出最近十行代码

原文地址:https://www.cnblogs.com/volva/p/11814805.html