- 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
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
Thank you! This helps me a lot for debugging C/C++, so I would like to share it 😄