Z-machine interpreters with debug mode toggle?

I couldn’t find anything when I was casting about for this a few months ago, but I didn’t look that hard for it, so there may be something.

This is probably a bit of a stretch for you, but I did add such a thing to my own Z-machine project. If you’re comfortable building Rust, you could check out https://github.com/bkirwi/folly and run something like cargo run --package encrusted-heart --release --example term -- game.z4 --debug 2> debug.log to run a game and print out every instruction executed to debug.log. (It’s certainly not as battle-tested as other interpreters in the world, but I’m not aware of any bugs, so probably good enough to get things off the ground at least?)

1 Like