gdb faq: how to set/cancel a break

来源:互联网 发布:淘宝网阿里巴巴批发网 编辑:程序博客网 时间:2024/05/16 18:38

gdb faq: how to set/cancel a break

in the command line,
gdb

then it will enter gdb command line
file foobar
run foobar
break foo.cpp:15    (which means to break at line 15 of foo.cpp)

info breakpoints (the result is breakpoints number with its corresponding setting)

delete breakpoints <breakpoints number>
0 0
原创粉丝点击