4 ms·
I was asking this myself this while reading the book "Crafting Interpreters". I posted a few resources I found on an issue about implementing debuggers [1] -- a
by emmanueloga_ 3y ago
I was asking this myself this while reading the book "Crafting Interpreters". I posted a few resources I found on an issue about implementing debuggers [1] -- although honestly I still haven't gotten down to read all of them (or to implement a debugger! :-/).
--
1: https://github.com/munificent/craftinginterpreters/issues/922 https://github.com/munificent/craftinginterpreters/issues/92...
- a1o 3y agoBesides breakpoints, any ideas on inspecting the value of a variable in each step, figuring out what variables are in scope, for the case of an interpreter?
- emmanueloga_ 3y agoI’m guessing you’ll have to work with the scopes in the resolver: https://github.com/munificent/craftinginterpreters/blob/master/java/com/craftinginterpreters/lox/Resolver.java#L12 https://github.com/munificent/craftinginterpreters/blob/mast...
- a1o 3y agoOoh, thanks for this! :)