gdbgui installation

There are a few ways to install gdbgui on your machine. There is even a way to run gdbgui without installing it. Read on to to find the one that's right for you.

gdbgui recommends using pipx, a program to run Python CLI binaries in isolated environments.

You can install pipx like this:

python3 -m pip install --user pipx
python3 -m userpath append ~/.local/bin

Then install gdbgui with pipx:

pipx install gdbgui

To upgrade run

pipx upgrade gdbgui

When installation is finished, type gdbgui from the command line to run it, or gdbgui -h for help.

To uninstall, run

pipx uninstall gdbgui

Try Without Installing

By using pipx, you can run Python CLI programs in ephemeral one-time virtual environments.

pipx run gdbgui

A new tab running the latest version of gdbgui will open in your browser. Press CTRL+C to end the process, and your system will remain untouched.

Method 2: Using pip

pip is a popular installer for Python packages. gdbgui is a Python package and as such can be installed with pip, though we recommend using pipx rather than pip if possible.

If you prefer to use Virtual Environments, you can activate one and then run

pip install gdbgui

You can get upgrades with

pip install --upgrade gdbgui

To uninstall, run

pip uninstall gdbgui

Method 3: Download and Run Binary Executable

Download and run the binary executable for your system from https://github.com/cs01/gdbgui/tree/master/downloads.

Note

These binaries may not always have the latest version of gdbgui available since their builds are not automatic. The latest version will always be available on PyPI.

System Dependencies for Python Package

Note that this only applies if you are installing the Python package, and not using the binary executable.

  • gdb (gnu debugger)
  • Python 3.4+ (recommended) or 2.7
  • pip version 8 or higher

Linux Dependencies

sudo apt-get install gdb python3

macOS Dependencies

brew install python3
brew install gdb --with-python --with-all-targets

macOS users must also codesign gdb: follow these instructions. This will fix the error please check gdb is codesigned - see taskgated(8).

Windows Dependencies

If you do not have already have gdb/make/gcc installed, there are two options to install them on Windows: MinGW and cygwin.

Minimal GNU for Windows (MinGW) is the recommended Windows option. Install MinGW with the "MinGW Base System" package. This is the default package which contains make, gcc, and gdb.

It will install to somewhere like C:\MinGW\bin\.... For example C:\MinGW\bin\gdb.exe, C:\MinGW\bin\mingw32-make.exe, etc.

Ensure this MinGW binary directory (i.e. C:\MinGW\bin\) is on your "Path" environment variable: Go to Control Panel > System Properties > Environment Variables > System Variables > Path and make sure C:\MinGW\bin\ is added to that list. If it is not added to your "Path", you will have to run gdbgui with the path explicitly called out, such as gdbgui -g C:\MinGW\bin\gdb.exe.

Cygwin

Cygwin is a more UNIX-like compatibility layer on Windows, and gdbgui works with it as well.

When installing cygwin packages, add the following:

  • python3
  • python3-pip
  • python3-devel
  • gdb
  • gcc-core
  • gcc-g++

Running from Source

See the contributing section.