Tips for debugging your new programming language

5 · Drew DeVault · Aug. 11, 2021, 12:28 p.m.
Say you’re building a new (compiled) programming language from scratch. You’ll inevitably have to debug programs written in it, and worse, many of these problems will lead you into deep magic, as you uncover problems with your compiler or runtime. And as you find yourself diving into the arcane arts, your tools may be painfully lacking: how do you debug code written in a language for which debuggers and other tooling simply has not been written yet? In the implementation of my own programming la...