gdb

Popular
Formula Development v17.2

GNU debugger

About

Install gdb on macOS with Homebrew Formula using `brew install gdb`. gdb is a Development command-line package with version 17.2. The package is listed in homebrew/core.

Install 1 App in Terminal
$
brew install gdb
Source: homebrew/core Website Homebrew

Dependencies

Build Dependencies

Installation Notes

gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:

  https://sourceware.org/gdb/wiki/PermissionsDarwin

Official Homebrew Stats

Install activity metrics for gdb.

-19.4% vs 90d avg
30 Days
1.3K total installs
44 installs / day avg
90 Days
4.9K total installs
54 installs / day avg
1 Year
26.9K total installs
74 installs / day avg

Frequently asked questions

How do I install gdb with Homebrew?

Run brew install gdb in Terminal to install gdb as a Homebrew formula on macOS.

What kind of package is gdb?

gdb is a Development Homebrew formula and FastBrew currently shows version 17.2.

What should I review before installing gdb?

Review the runtime dependencies (gmp, mpfr, ncurses, python@3.14, readline, xz, zstd) and build dependencies (pkgconf, texinfo) along with any caveats before installing.

Related Development Apps

View all
Open openssl@3
openssl@3
Popular

Cryptography and SSL/TLS Toolkit

formula Development v3.6.3
Open ca-certificates
ca-certificates
Popular

Mozilla CA certificate store

formula Development v2026
Open sqlite
sqlite
Popular

Command-line interface for SQLite

formula Development v3.53.4
Open node
node
Popular

Open-source, cross-platform JavaScript runtime environment

formula Development v26.7.0
Open pcre2
pcre2
Popular

Perl compatible regular expressions library with a new API

formula Development v10.47
Open pkgconf
pkgconf
Popular

Package compiler and linker metadata toolkit

formula Development v3.0.6