gdb简单命令: 1,开始调试: gdb program 2, 设置断点: break/b ****.cpp:行号。 3,单步运行: next/n . 4, 继续运行:continue/c. 5, 退出:quit.