node-chakracore icon indicating copy to clipboard operation
node-chakracore copied to clipboard

inspector: TTD hangs node, can't exit

Open kfarnung opened this issue 7 years ago • 2 comments

Tested using latest xplat commit.

Debug a script that ends in an exception (like #266). Once you hit the exception there's no way to exit. Trying to continue doesn't continue to the exit and Ctrl-C doesn't work either.

kfarnung avatar May 26 '17 22:05 kfarnung

When the debugger detaches the TTD loop keeps running (node.cc line 4790). In this loop if there is an unhandled exception the TTD system sets a breakpoint at the line with the exception and tries to re-execute but since the debugger isn't attached it does not stop a at this line and hits the exception again.

We probably want to update the check on line 4797 to check if the debugger is still attached (as well as just being enabled) and exit the loop if it is not.

mrkmarron avatar May 29 '17 18:05 mrkmarron

@mrkmarron I took a look in a debugger and we don't appear to be getting stuck in that loop, so I'll have to investigate further.

kfarnung avatar Jun 02 '17 23:06 kfarnung