The GNU Debugger (GDB) is an awesome tool for debugging your programs written in C, C++, FORTRAN (please don’t), and plenty of other compiled languages. You can use it by running gdb from the command line.