3 ms·
I wish node also has a full-featured server-side debugger that worked in the terminal. When I'm writing server-side code and popping `debugger;` into my unit t
by afarrell 9y ago
I wish node also has a full-featured server-side debugger that worked in the terminal.
When I'm writing server-side code and popping `debugger;` into my unit test, I really don't want to go to open up a chrone window and use my mouse to fiddle with the sizes of the panes to make debugging in chrome work. It looks like this protocol could eliminate the problem of waiting for the connection to come through (it drops a lot of the time when you do it within unit tests), which is great.
If I wanted to get started adding this to node.js, does anyone have any suggestions for where I would start? Presumably by first getting a solid mental model of V8's internals, but has anyone else worked on debuggers that could give me some pointers?