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
2
3
4
5
6
7
8
vim graph01.c
# following commands are usedin Vim
:ConqueGdbSplit graph01
run gr01_test.in > out.txt or only run gr01_test.in
b 37
r
s
c

vim_gdb

Note:
This note is originally posted in gist