The GDB server allows you to set breakpoints and control your PSX program's execution from your gdb compatible IDE.
Enabling the GDB server
Configuration > Emulation > Enable GDB server.
Make sure the debugger is also enabled.
gdb-multiarch on your system :
Download a pre-compiled version from here : https://static.grumpycoder.net/pixel/gdb-multiarch-windows/
Install via your package manager :
1 2 3 4 5
- Install the
Native debugextension :
- Adapt your
launch.jsonfile to your environment :
lanuch.jsonfile is available here.
This should go in
You need to adapt the values of
"autorun" according to your system :
This is the path to your
.elf executable :
This the path to the
1 2 3 4
Make sure that
"load your-file.elf" corresponds to the
By default, using
localhost should work, but if encountering trouble, try using your computer's local IP (e.g; 192.168.x.x, 10.0.x.x, etc.)
Make sure you installed the official plugins and enable the
To enable the plugin, open Geany, go to
Tools > Plugin manager and enable
You can find the debugging facilities in the
Debug menu ;
You can find the plugin's documentation here : https://plugins.geany.org/scope.html
.gdbinit file at the root of your project with the following content, adapting the path to your
elf file and the gdb server's ip.
1 2 3 4
In Geany :
Debug > Setup Program :
pcsx-redux, then run the debugger from your IDE. It should load the
elf file, and execute until the next breakpoint.