sudo pacman -S gdb
sudo pacman -S pwndbg
echo 'source /usr/share/pwndbg/gdbinit.py' >> ~/.gdbinit
If you are getting the following error "Cannot find Pwndbg virtualenv directory: /usr/share/pwndbg/.venv: please re-run setup.sh", do the following steps, otherwise ignore:
Creating the venv:
python -m venv /usr/share/pwndbg/.venv
Activating the venv:
source /usr/share/pwndbg/.venv/bin/activate
Install the missing packages:
pip install pwndbg pwnlib pyelftools psutil typing_extensions pwntools tabulate
Thank you, especially for the last line!