• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<script>
2function stepOne()
3{
4    var x = 1;
5}
6
7function stepTwo()
8{
9    alert("Test failed. The second button event still fired.");
10}
11</script>
12<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=20284">Bug 20284: JavaScript can be executed even though debugger is running and at a break point</a>.</p>
13<p>To test, open the Inspector and start a debugging session. Set a break point inside the stepOne() function. Now click the Step One button in the page. The breakpoint should be hit. While paused at the breakpoint click on the Step Two button. You should not see an alert dialog.</p>
14<button onclick="stepOne()">Step One</button><br><br>
15<button onclick="stepTwo()">Step Two</button><br><br>
16