CS 105 (C++)
Discussion 14
C++: Other Things You Should Know
gdb
The GNU Debugger
- Find a tutorial on-line to learn how to use it. (It's pretty straightforward.)
- Can be used with a command-line interface.
- Can be run nicely from within
emacs. (If you expect to do a significant amount of C/C++ programming on UNIX machines, this is a classy way to go.)
- Don't forget the
-g option when compiling.