node-chakracore
node-chakracore copied to clipboard
inspector: TTD Reverse not hitting breakpoints
Using the latest xplat commit I record a script:
setInterval(() => {
var i = 0;
console.log(`Doing stuff ${i++}`);
console.log(`Doing more stuff ${i++}`);
console.bar();
}, 5000);
Then record it:
node.exe --record app.js
Then play it back:
node.exe --inspect-brk --replay-debug=_diagnosticTraces\emitOnException dummy.js
When it breaks on the exception I place a breakpoint on the first console.log and try to reverse. It never stops on the breakpoint and eventually starts on the first line of the timeout handler. At that point I can continue and hit the breakpoint.
/cc @mrkmarron
There is a conflict with the debugger trapping unhandled exceptions as well as TTD trying to handle them. If the "uncaught exceptions" box is unchecked in the breakpoints pane then things should work as expected.
I am not sure if we want to try and update ChakraCore to handle this or if it is easier to disable automatically at the inspector level.