← All projects
Project record1 mention
Originally shared on Hacker News

ZScript runtime debugger

This project adds runtime debugging to ZScript, the custom scripting language of the Zelda game engine the author contributes to. The language compiles to bytecode that carries no source information, so the debugger maps generated bytecode back to originating source lines for stack traces and resolves scope information to display function names and per-scope runtime variables (stack variables, globals, class fields). Remaining work includes a runtime expression parser for evaluating expressions against the current scope, breakpoints, step over/into controls, and packaging it all as a VSCode extension.

Last shared
01 / The problem

What it addresses

The game engine's custom scripting language never had any runtime debugging capabilities, and its compiled bytecode contains no source information.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. ZScript runtime debugger

    This project adds runtime debugging to ZScript, the custom scripting language of the Zelda game engine the author contributes to. The language compiles to bytecode that carries no source information, so the debugger maps generated bytecode back to originating source lines for stack traces and resolves scope information to display function names and per-scope runtime variables (stack variables, globals, class fields). Remaining work includes a runtime expression parser for evaluating expressions against the current scope, breakpoints, step over/into controls, and packaging it all as a VSCode extension.

    Problem: The game engine's custom scripting language never had any runtime debugging capabilities, and its compiled bytecode contains no source information.

    Posted by @hoten · Original source ↗

    Source text · @hoten · · Source ↗

    Implementing a debugger for the custom scripting language used by the Zelda game engine I contribute to. The game engine I work on (link in bio) developed a custom language for engine customization, but it never had any runtime debugging capabilities.