How To Install Ghidra With Debugger
The following text snippet shortly explains how to install Ghidra with Debugger on Ubuntu. The Debugger is currently under development and can be found in an extra branch of the Ghidras Git repository. The tool is not part of the main branch yet, but will be merged in future.
In order to test the Debugger follow the installation steps below.
## download the repo
$ git clone https://github.com/NationalSecurityAgency/ghidra.git -b debugger --depth 1 ~/ghidra
$ cd ~/ghidra## install SDKMAN to install Gradle which will build Ghidra.
$ curl -s "https://get.sdkman.io" | bash
$ sdk install gradle## build Ghidra
$ gradle --init-script gradle/support/fetchDependencies.gradle init
$ gradle buildGhidra## access the finished build, unpack and run Ghidra
$ cd build/dist/
$ unzip ghidra_*.zip
$ cd ghidra_<VERSION>_DEV
$ ./ghidraRun
After starting Ghidra the project view is visible. Yet, the Debugger is still missing in the Tool Chest section.
The Debugger needs be added to Ghidra by importing the tool from the default tools sections. Therefore, open Tools -> Import Default Tools on top of the window and select “defaultTools/Debugger.tool” as shown below.
Now the icon for the Debugger is available in the Tool Chest and can be selected.