| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function test() | 2 function test() |
| 3 { | 3 { |
| 4 debugger; | 4 debugger; |
| 5 } | 5 } |
| 6 | 6 |
| 7 for (var i = 0; i < 1; ++i) | 7 for (var i = 0; i < 1; ++i) |
| 8 test(); | 8 test(); |
| 9 </script> | 9 </script> |
| 10 | 10 |
| 11 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debug
ger breaks, select the | 11 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debug
ger breaks, select the |
| 12 (anonymous function) node in the call stack, you should see the execution line o
n the call to test().</p> | 12 (anonymous function) node in the call stack, you should see the execution line o
n the call to test().</p> |
| 13 <br><br> | 13 <br><br> |
| 14 Also set a breakpoint on the call to test(), and reload. It should break before
the test() function is called. | 14 Also set a breakpoint on the call to test(), and reload. It should break before
the test() function is called. |
| OLD | NEW |