Quoted from Geeks3D "Here is a short tutorial about GBD for beginners. GDB is the powerful command line based debugger available with Linux. If you usually use a visual debugger like the one integrated in Visual Studio, a command line debugger like GDB can be a bit… frightening. But actually it’s quite easy to step into your code with it. Few commands are necessary to quickly start using GDB for basic debugging tasks."
Here it starts: > gdb your_program