GNU Debugger

Debugger for C++ (specifically GCC).
web | etc



If you normally run:


you now run:

gdb regularfile

This loads the executable but does not run it. At the gdb prompt set your breakpoints (break class::functionName or break filename.cpp:linenumber), then start the program (run).

Further reading

Symbols not found

If symbols are not found, but you are sure they should be, consider clearing the build folder and re-running CMake/make.

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "GNU Debugger in Grasmere notebook, including code snippets" (why? how?)