VS Code Z80 Debug Adapter
Note: you need to install at least ZEsarUX version 8.0
The Z80-Debug-Adapter (z80-debug) lets you use Visual Studio Code (vscode) as IDE for ZEsarUX (a ZX Spectrum emulator). With this extension it is possible to debug assembler programs built for the ZX Spectrum. It's primary intention is to support building new programs, i.e. programs with existing assembler source code. (It may also be used without source code to debug binaries but in that case the support is very limited and you could probably better directly debug at ZEsarUX.) The biggest help it offers is that you are able to step through your sources and that z80-debug is aware of all labels and can give hints to what label a number resolves.
The z80-debug connects to ZEsarUX via a socket connection. ZEsarUX offers quite a few commands accessible via socket according to the so-called zrcp (ZEsarUX Remote Control Protocol). See ZEsarUX for more information.
Note: The Z80-Debug-Adapter does not include any support for building from assembler sources. For this you need to create a build task yourself. For an example look here: https://github.com/maziac/z80-sample-program
In order to use z80-debug you need
In Visual Studio Code simply install "Z80 Debugger" (maziac.z80-debug) from the Marketplace.
There are 2 other extensions that are not required to work with z80-debug but may help:
Both can be installed from the market place.
Please look at the documentation 'Usage of the VS Code Z80 Debug Adapter'.
z80-debug is licensed under the MIT license.
The source code is available on github.