Skip to content

speccytools/z88dk-gdb-ide-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDE debug example for z88dk (VSCode, CLion)

  1. Install latest z88dk
  2. Dowload emulator with gdbstub, e.g. Fuse fork from speccytools.org or MAMEdev. You can also debug real hardware with Spectranet
  3. Launch the emulator, with Fuse, make sure gdbserver is enabled on port 1337
  4. Build the project. For VSCode it's Debug configuration, for CLion it's idetest | Debug
  5. Place a breakpoint on sum
  6. Start the debugging session, (Debugging tab on VSCode, "emulator" configuration for CLion)
  7. z88dk-gdb should upload the binary onto the emulator
  8. You should see the breakpoint being hit

See how z88dk implements CMake here

Building and debugging on CLI?

mkdir build
cd build
cmake -DZCCTARGET=zx -DCMAKE_TOOLCHAIN_FILE=/usr/local/share/z88dk/cmake/Toolchain-zcc.cmake ..
make
z88dk-gdb -x idetest.map -h <debugger host> -p <debugger-port>

About

Example how to debug z88dk program on modern IDE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published