Tool z88dk gdb - marinus-lab/z88dk GitHub Wiki
z88dk-gdb is currently under development
Usage
Compile your application with the -debug option:
zcc +zx -debug main.c -create-app -m
Run On Mame emulator
./mame spectrum -window -nomaximize -resolution0 768x576 -debug -debugger gdbstub -debugger_port 1337
Fuse fork for Windows
Run onStart Fuse, select "GDBServer...", select "Enabled"
Fuse fork for Mac
Run onStart Fuse, select "Preferences", select "Debugger", select "Enable GDBServer"
Run on physical hardware
Install spectranet-gdbserver (requires Spectranet), connect to port 1667
Debugging with Visual Studio Code or CLion
See z88dk-gdb-ide-test example
Debugging from command line
z88dk-gdb -h <connect host> -p <connect port> -x <debug symbols>