diff options
Diffstat (limited to 'content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html')
-rw-r--r-- | content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html b/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html new file mode 100644 index 0000000..1a9e274 --- /dev/null +++ b/content/browser/debugger/manual_tests/debugger-pause-on-for-statements.html @@ -0,0 +1,14 @@ +<script> +function test() +{ + debugger; +} + +for (var i = 0; i < 1; ++i) + 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. |