1 gcc -g -o dest source.c
gdb dest //执行可执行文件并DEBUG
b 5 // 设计第五行为断点
run //运行程序
l //下一步
p //打印
s //跳入函数并下一步