Command-line tool
gdb
brew/gdb
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
GNU debugger
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install gdb
macOS
brew install gdb
Linux
brew install gdb
Debug an executable
gdb path/to/executable
Attach a process to `gdb`
gdb -p process_id
Debug with a core file
gdb -c path/to/core path/to/executable
Related command-line tools
- zshdb
Debugger for zsh - desed
Debugger for Sed - bashdb
Bash shell debugger - mspdebug
Debugger for use with MSP430 MCUs - cgdb
Curses-based interface to the GNU Debugger - oclgrind
OpenCL device simulator and debugger - ddd
Graphical front-end for command-line debuggers - dnspy
.NET debugger and assembly editor
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents