非常好的参考资料,记录以备查看:GDB调试命令总结 执行命令 run test -a 1 -b 2 -c 3 设置条件断点 break foo.cpp:102 if i==10 继续执行到下一个断点 continue