3 ms·
Really nice read. Does anyone know any other good articles or videos about how to write a debugger?
by zubairq 3y ago
Really nice read. Does anyone know any other good articles or videos about how to write a debugger?
- emmanueloga_ 3y agoI 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! :)
- mrazomor 3y agoI really liked https://blog.tartanllama.xyz/writing-a-linux-debugger-setup/ https://blog.tartanllama.xyz/writing-a-linux-debugger-setup/ I learned a lot.
- wila 3y agoHow about a book? I like "Advanced Windows Debugging" by Mario Hewardt and Daniel Pravat.
- Modified3019 3y agoNot what you asked for, but if that's your interest you'll probably appreciate https://justine.lol/blinkenlights/ https://justine.lol/blinkenlights/
- jansommer 3y agoI wrote this: https://ja.nsommer.dk/articles/x86-debugger-for-windows-and-wine.html https://ja.nsommer.dk/articles/x86-debugger-for-windows-and-... It's a debugger for Windows (and Wine), like the one in the article, written in C. It uses software breakpoints (infinite breakpoints)
- HansLambda 3y agoTake a look heere: https://eli.thegreenplace.net/tag/debuggers https://eli.thegreenplace.net/tag/debuggers It was eye-opening for me.