Use ConqueGDB in Vim
How to use ConqueGDB in Vim
Install ConqueGDB in Vim
Debug C/C++:
- Compiler your c/c++ code with -g flag. if not, gdb may not find symbol
- Open your source file which one with main()
- Insert following
:ConqueGdbSplit executeFileName
- In ConqueGdb, type run
argument which follow executeFileName
- Type
b 34
to add breakpoint at line 34 in your source code - Type
r
to run program again, will stop if you set breakpoint - Type
s
to run step by step (as step-in ) - Type
c
to continue
Example
1 | vim graph01.c |
Note:
This note is originally posted in gist
本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 Robin Chen's Blog!
評論