summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/manual_tests/debugger-pause-on-else-statements.html
blob: 3c80a437b733b0b4c8ff871e24100b5a0d605feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
function test()
{
    debugger;
}

if (false)
    debugger; // This should not be hit.
else
    test();
</script>

<p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debugger breaks, select the (anonymous function) node
in the call stack, you should see the execution line on the call to test().</p>
<br><br>
Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.