News for hackers. Stuff that matters.
Re:V8, Advanced JavaScript, and the Next Performance Frontie... by afarrell on Tuesday May 30, 2017 @04:25AM (#14443699)
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?

Re:V8, Advanced JavaScript, and the Next Performance Frontie... by mscdex on Tuesday May 30, 2017 @12:40PM (#14446546)
Re:V8, Advanced JavaScript, and the Next Performance Frontie... by STRML on Tuesday May 30, 2017 @06:53PM (#14449223)
It does - and has for a long time:

https://nodejs.org/api/debugger.html