By stephan avenwedde gnu debugger (gdb) allows you to monitor a program as it executes. For best results, the program must have been compiled with debug symbols (-g in gcc). Break/watch the line number in the cur-rent source file.

For more in-depth debugging tips, check out the cs107 debugging รขโ‚ฌยฆ The commands contained within this document are by no means exhaustive; Gdb contains many features which are not documented here. Consult the man pages (man gdb) or the internet if you รขโ‚ฌยฆ