GDB (GNU Debugger) is an invaluable tool for debugging programming. It is well worth learning because once familiar with it you can save SIGNIFICANT time debugging programs. GDB can be run from the command-line. It is also integrated into Emacs.