Status: Accepted Owner: [email protected] Labels: Type-Bug Priority-Medium
New issue 315 by [email protected]: No stepping in loops with one breakable statement http://code.google.com/p/v8/issues/detail?id=315 If a loop has only one breakable statement stepping will step out of the loop just hitting the breakable statement once. E.g. stepping through this function will only hit 'x = i' once function f() { debugger; for (var i = 0; i < 10; i++) { x = i; } } where as stepping through this function hits 'x = i' and 'y = i' 10 times each. function g() { debugger; for (var i = 0; i < 10; i++) { x = i; y = i; } } This is caused by the debugger logic used to skip steps that does not look as it they move to some new code. With a single breakable statement in a loop this logic is fooled. In the D8 shell the minimum stepping (command "step min" or "s m") will get the correct number of steps. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
