To debug C or C++ programs in Linux, one can make use of the gdb debugging tool that comes with your system. Let's see how it works.