• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<script>
2function test()
3{
4    debugger;
5}
6
7if (false)
8    debugger; // This should not be hit.
9else
10    test();
11</script>
12
13Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=21944">Bug 21944: Can't set a breakpoint on the statement after a single line "else"</a>.
14<br><br>
15Start a debugging session in the Web Inspector and open this file. When the debugger breaks, select the (program) node
16in the call stack, you should see the execution line on the call to test().
17<br><br>
18Also set a breakpoint on the call to test(), and reload. It should break before the test() function is called.
19