talira

The GNU Project debugger.

open sourceGPL-3.0-or-laterfree

GDB, the GNU Project debugger, lets you see what's going on inside a program while it runs, or what it was doing when it crashed: start it with the inputs you choose, stop it on conditions, examine its state and change things to test a fix. It debugs programs on the same machine, on another machine through gdbserver, or on a simulator, and supports C, C++, Rust, Go, Fortran, Ada, D and other languages. It runs on Unix-like systems, Windows and macOS, and implements the Debug Adapter Protocol for IDEs.

Ways to install

Package managers

Problems it solves

  • find out why my C program segfaults by stepping through it
  • inspect a crashed process's stack and variables
  • debug a program running on another machine or an embedded board

Features

  • breakpoints, watchpoints and conditional stops
  • native, remote (gdbserver) and simulator debugging
  • C, C++, Rust, Go, Fortran, Ada, D, Objective-C and other languages
  • Debug Adapter Protocol for IDEs
  • TUI and GDB/MI interfaces

Alternatives

The same job

These do what GDB does.

  1. RAD Debugger Native graphical debugger for x64 on Windows and Linux, with a fast linker
  2. RemedyBG A small, fast 64-bit debugger for Windows.
  3. debug (Ruby) Ruby's standard debugger, with remote debugging and VS Code and Chrome DevTools frontends
  4. Delve The debugger for the Go programming language
  5. Pernosco Omniscient debugger for rr recordings of Linux programs

Compare GDB with the top 3