gdb
brew install gdb
v17.2
GPL-3.0-or-later
GNU debugger for inspecting and controlling program execution across C, C++, Rust, Go, and other languages.
Why you might care
Essential for interactive debugging: set breakpoints, step through code, inspect variables, and examine crashes. Supports remote debugging, core dumps, and multiple architectures. Many IDEs and build workflows depend on GDB; use it standalone for minimal-overhead terminal-based debugging without IDE overhead.
2.1k
30-day installs · #952
6.8k
90-day · #967
29.0k
365-day · #900
Runtime dependencies
Build dependencies
Links
- https://www.gnu.org/software/gdb/
- Brew formula source: Formula/g/gdb.rb
Caveats
gdb requires special privileges to access Mach ports. You will need to codesign the binary. For instructions, see: https://sourceware.org/gdb/wiki/PermissionsDarwin
Blurb generated by claude-haiku-4-5 on 2mo ago.
Raw metadata
{
"aliases": [],
"alternatives": [
"lldb",
"rust-gdb",
"cgdb"
],
"build_dependencies": [
"pkgconf",
"texinfo"
],
"categories": [
"debugger"
],
"caveats": "gdb requires special privileges to access Mach ports.\nYou will need to codesign the binary. For instructions, see:\n\n https://sourceware.org/gdb/wiki/PermissionsDarwin\n",
"conflicts_with": [],
"dependencies": [
"gmp",
"mpfr",
"ncurses",
"python@3.14",
"readline",
"xz",
"zstd"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "GNU debugger",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:37:56+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "gdb",
"github_default_branch": null,
"github_last_commit_at": null,
"github_readme_excerpt": null,
"github_repo": null,
"github_stars": null,
"github_topics": [],
"homepage": "https://www.gnu.org/software/gdb/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": "GDB: The GNU Project Debugger",
"installs_30d": 2105,
"installs_365d": 29042,
"installs_90d": 6751,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-3.0-or-later",
"llm_generated_at": "2026-06-20T23:48:03+00:00",
"llm_model": "claude-haiku-4-5",
"name": "gdb",
"oldnames": [],
"one_liner": "GNU debugger for inspecting and controlling program execution across C, C++, Rust, Go, and other languages.",
"optional_dependencies": [],
"rank_30d": 952,
"rank_365d": 900,
"rank_90d": 967,
"raw_hash": "e77b53b4453db959",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/gdb.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"expat"
],
"version_head": "HEAD",
"version_stable": "17.2",
"versioned_formulae": [],
"why_use_this": "Essential for interactive debugging: set breakpoints, step through code, inspect variables, and examine crashes. Supports remote debugging, core dumps, and multiple architectures. Many IDEs and build workflows depend on GDB; use it standalone for minimal-overhead terminal-based debugging without IDE overhead."
}