gdb
- compile executables with '-g' to generate debugging information (see 4.1 in gdb manual)
- usage: gdb <program>
gdb examples (at gdb prompt)
break [function name|line number|* address] delete [breakpointno] (delete breakpoint no or all breakpoints) run [> outfile] bt (backtrace) s (step into) c (continue) n (next, step over) set args <arg1> <arg2> ... show args info locals info breakpoints disable <breakpointno> display <expr> (automatic display list) info display undisplay <displayno> disable display <displayno> enable display <displayno>