debugger-pause-on-for-in-statements.html   [plain text]

function test()

var object = { test: 1 };

for (var property in object)

Test for <a href="">Bug 22004: Can't set a breakpoint on the statement after a single line "for"</a>.
Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node
in the call stack, you should see the execution line on the call to test().
Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.