- Version: 6.0.0-6.2.1
- Platform: all
- Subsystem: debugging
Save this snippet as throw.js:
function throwAndCatch() {
try {
throw new Object();
}
catch (e) {
}
}
console.log("before");
throwAndCatch();
console.log("after");
console.log("the end");
Debug snippet with node builtin debugger:
- step over
console.log("before");
- step over
throwAndCatch();
Observe: the first step works fine but the second doesn't. The program runs to the end.
Commenting out the line with the throw makes stepping work.
The same problem can be observed when debugging in node-inspector or VS Code.
In node versions < 6.0 stepping was working fine.
Save this snippet as
throw.js:Debug snippet with node builtin debugger:
console.log("before");throwAndCatch();Observe: the first step works fine but the second doesn't. The program runs to the end.
Commenting out the line with the
throwmakes stepping work.The same problem can be observed when debugging in node-inspector or VS Code.
In node versions < 6.0 stepping was working fine.