WebCore/manual-tests/inspector/debugger-pause-on-for-in-statements.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<script>
function test()
{
    debugger;
}

var object = { test: 1 };

for (var property in object)
    test();
</script>

Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22004">Bug 22004: Can't set a breakpoint on the statement after a single line "for"</a>.
<br><br>
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().
<br><br>
Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.