gdb调试

1.g++ test_search.cpp -o test_search.o -g

2.gdb ./test_search.o

3.l:看代码

b 12:设置断点在第12行

p var: 看变量

n:单步执行

r: run

c: continue

posted @ 2014-06-09 17:06  Django's blog  阅读(160)  评论(0编辑  收藏  举报