Run the following command to install the prebuilt binaries of FireDBG.
curl https://raw.githubusercontent.com/SeaQL/FireDBG.for.Rust/main/install.sh -sSf | sh
FireDBG binaries will be installed in ~/.cargo/bin
and a debugger self test will be conducted to verify the installation. Expect to see:
info: completed FireDBG self tests
In case you got error messages when performing self test, read Troubleshooting Guide for the solution of common errors.
If you saw FireDBG: no precompiled binaries available for OS: ...
, you can manually download a prebuilt binaries of compatible OS.
-
Go to the FireDBG release page
-
Download a prebuilt binaries of compatible OS
# Download the prebuilt binaries curl -sSfL "https://github.com/SeaQL/FireDBG.for.Rust/releases/download/1.74.1/x86_64-ubuntu22.04.tar.gz" -o "x86_64-ubuntu22.04.tar.gz" # General form curl -sSfL "https://github.com/SeaQL/FireDBG.for.Rust/releases/download/<LATEST_VERSION>/<ARC>-<OS>.tar.gz" -o "<ARC>-<OS>.tar.gz"
-
Unzip the
.tar.gz
# Unzip mkdir -p "x86_64-ubuntu22.04" && tar xf "x86_64-ubuntu22.04.tar.gz" --strip-components 1 -C "x86_64-ubuntu22.04" # General form mkdir -p "<ARCH>-<OS>" && tar xf "<ARCH>-<OS>.tar.gz" --strip-components 1 -C "<ARCH>-<OS>"
-
Copy FireDBG binaries into
$HOME/.cargo/bin
# Copy mkdir -p "$HOME/.cargo/bin" && cp -r x86_64-ubuntu22.04/* "$HOME/.cargo/bin/" # General form mkdir -p "$HOME/.cargo/bin" && cp -r <ARCH>-<OS>/* "$HOME/.cargo/bin/"
-
Perform debugger self tests
cd "$HOME/.cargo/bin/firedbg-lib/debugger-self-test" rm -f *.firedbg.ss firedbg run debugger_self_test --output output.firedbg.ss firedbg-indexer --input output.firedbg.ss validate --json expected_data.json && echo "info: completed FireDBG self tests"