[prev] 47 [next]

GDB: The Gnu Debugger

gdb provides facilities to
  • control execution of program
    (step-by-step execution, breakpoints)
  • view intermediate state of program
    (values stored in data structures, control stack)
Plain gdb uses a command-line interface.

ddd provides a GUI wrapper around gdb.

For initial debugging, gdb is very useful.