Skip to content
Alex Siryi edited this page Jun 11, 2023 · 6 revisions

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

Start Fuse, select "GDBServer...", select "Enabled"

Start 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> 
Clone this wiki locally