# GDB

> The GNU Project debugger.

Source: https://talira.ai/catalog/gdb-drb2ej9v
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / debugging](https://talira.ai/categories/developer-tools/debugging)
- Platforms: linux, macos, windows[^2]
- Licence: GPL-3.0-or-later[^3]
- Pricing: Free[^2]
- Free tier: yes[^2]
- Supports: [DAP](https://talira.ai/standards/dap.md)[^4]
- Backed by: [GNU Project](https://talira.ai/orgs/gnu.md)

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.

## Links

- Website: https://www.sourceware.org/gdb/
- Docs: https://www.sourceware.org/gdb/documentation/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/gdb>[^1]

## 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

## Trust

Overall: 0.31 out of 1.
Signals: adoption 0.60, backing 0.30, extensibility 0.00.

- 2k Homebrew installs in 30 days
- backed by GNU Project

Warnings:

- activity not tracked: no repository is linked

## Alternatives

- [RAD Debugger](https://talira.ai/catalog/rad-debugger-mg4dcymh.md): Native graphical debugger for x64 on Windows and Linux, with a fast linker
- [RemedyBG](https://talira.ai/catalog/remedybg-h7bdz547.md): A small, fast 64-bit debugger for Windows.
- [debug (Ruby)](https://talira.ai/catalog/debug-ruby-trcxymvh.md): Ruby's standard debugger, with remote debugging and VS Code and Chrome DevTools frontends
- [Delve](https://talira.ai/catalog/delve-jqtb6pnd.md): The debugger for the Go programming language
- [Pernosco](https://talira.ai/catalog/pernosco-2egnwd63.md): Omniscient debugger for rr recordings of Linux programs

## Sources

[^1]: https://formulae.brew.sh/formula/gdb (checked 29 Nov 2026)
[^2]: https://www.sourceware.org/gdb/ (checked 29 Nov 2026)
[^3]: https://metadata.ftp-master.debian.org/changelogs//main/g/gdb/unstable_copyright (checked 29 Nov 2026)
[^4]: https://www.sourceware.org/gdb/current/onlinedocs/gdb.html/Debug-Adapter-Protocol.html (checked 29 Nov 2026)
