Debuggers for C++
C++ Debuggers

Stand-alone Debuggers
Stand-alone

gdb

the GNU debugger

lldb

the LLVM project's debugger

rr

  • WSL
  • records program state over time
  • replay & debug same recording many times
  • reverse execution
  • chaos mode for catching intermittent bugs
  • claims to be faster and more memory efficient than gdb

WinDbg

does also provide record & replay debugging like rr (here called time travel debugging)

GDB Frontends

cgdb

  • WSL
  • runs in the command line
  • split screen with source code window
  • shows break points and current instruction
  • install on Ubuntu/Debian/WSL: sudo apt-get install -y cgdb

gdbgui

  • browser-based frontend for gdb
  • install via pip: sudo pip install gdbgui

DDD

  • WSL+Xserver
  • official GNU debugger frontend
  • The UI is a bit old-fashioned, but it is actually quite usable if you spend some time with it.
  • install on Ubuntu/Debian/WSL: sudo apt-get install -y ddd

WinGDB

debugging with GDB in Microsoft Visual Studio