What Do You Use to Debug Linux / UNIX C/C++ Programs?

Posted on in Categories Ask nixCraft, GNU/Open source, Linux, programming, UNIX last updated February 24, 2009

The purpose of a debugger is to allow you to see what is going on inside another program while it executes. It is useful to find out what another program was doing at the moment it crashed. I know most people will recommend GNU gdb, Nemiver, Valgrind or IDE such as Eclipse. I use gdb when it is really required; otherwise I debug the old fashioned way using printf() or cout statements.