Using the old runtime I could set a breakpoint anywhere in my code. With the new v8 runtime breakpoints apparently have to be in the function I run from the debugger?
Is this intended behavior? Am I doing something wrong in the debugger, or in my code? Is it not structured correctly, perhaps?
MINIMAL EXAMPLE:
var test1 = 1;
var test2 = 2;
var test3 = 3;
function myFunction() {
var test4 = 4;
var test5 = 5;
}
V8 RUNTIME:
I can set a breakpoint on var test4 = 4
and then use the debugger and select myFunction
, and the code breaks on that line.
But if I set the breakpoint on var test2 = 2
and then use the debugger, selecting myFunction
, it doesn't break (It would with the old runtime).