GNU Debugger

Start the gnu debugger from the command line with:

$ gdb foo

Commands

Press <RET> to simply repeat the previous command.

Running

  start
step
next

Step steps into the current line of code, whilst next steps over it.

Breakpoints

info breakpoints
break main.cc:140

Variables

display foo

-- Frank Dean - 10 Apr 2010