* convert backslashes to forward slashes in windows #167 * cleanup menu * fix safari ui issue #164 * smarter disassembly fetching (#166) * add copy to clipboard and allow missing SSL module (#170) * add copy icon for variables; bugfix when fetch variables (#163) * erase breakpoint without jumping to that line of code (#172) * fix for displaying updates
4.8 KiB
gdbgui installation
Installation Options
There are two options to use gdbgui:
- standalone binary executable or
- the Python Package
gdbgui
.
Standalone binary executables are easier to install, and are available at gdbgui.com.
Python Package
If you do not want to use the binary, gdbgui
is also a package in the Python Package Index (PyPI) and can be installed using pip, the recommended tool for installing Python packages. It is installed like any other python package:
[sudo] pip install gdbgui --upgrade
When installation is finished, type gdbgui
from the command line to run it, or gdbgui -h
for help.
If you are unfamiliar with pip
or if that command did not work, consider downloading the binary since it can be run directly. If you still want to install with pip, see Troubleshooting below.
Please create an issue or pull request if any of this information is out of date, incomplete, or incorrect.
Prerequisites if Using Python Package
- gdb (gnu debugger)
- Python 3.4+ (recommended) or 2.7
- pip version 8 or higher
Linux Prerequisites
Note: this is for python package installation only, and not related to the standalone binary executables available at gdbgui.com.
sudo apt-get install gdb python3
sudo python3 -m pip install pip --upgrade
macOS Prerequisites
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 Prerequisites
Note: this is for python package installation only, and not related to the standalone binary executables available at gdbgui.com.
- Python 3
- gdb, make, gcc
If you do not have already have gdb/make/gcc installed, there are two options to install them on Windows: MinGW
and cygwin
.
MinGW (recommended)
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.
- Install cygwin | homepage)
- When installing cygwin packages, add the following: ** python3 ** python3-pip ** python3-devel ** gdb ** gcc-core ** gcc-g++
Then run
pip install gdbgui --upgrade
Troubleshooting
Note: this is for python package installation only, and not related to the standalone binary executables available at gdbgui.com.
Linux, macOS, Windows
If there is a conflict or error when installing via pip, use pipsi
. pipsi is like pip, but it sandboxes everything into its own python environment, and it works on all operating systems.
- Download the pipsi installer
- Run with python:
python get-pipsi.py
~/.local/bin/pipsi.exe install gdbgui
When installation is finished, type gdbgui
from the command line to run it, or gdbgui -h
for help.
To upgrade gdbgui with pipsi:
~/.local/bin/pipsi.exe upgrade gdbgui
Running from source
git clone https://github.com/cs01/gdbgui
cd gdbgui
pip install -r requirements.txt # run as sudo if this fails
gdbgui/backend.py
Note: Although not strictly required, you should install requirements.txt using a virtualenv to avoid changing system python packages.
A virtualenv sandboxes python packages, which guarantees there will be no installation conflicts.
To use a new virtualenv:
pip install virtualenv # run as sudo if this fails
virtualenv venv -p python3 # creates a virtual env named "venv"
source venv/bin/activate # activates the virtualenv sandbox
pip install pip --upgrade # make sure pip is at the latest version
Then run
pip install -r requirements.txt