Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Unified Diff: content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html

Issue 11645015: Revert r173891 - "DevTools: rename debugger/ to devtools/, move DevTools files into content/rendere… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html
diff --git a/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html b/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html
new file mode 100644
index 0000000000000000000000000000000000000000..3c80a437b733b0b4c8ff871e24100b5a0d605feb
--- /dev/null
+++ b/content/browser/debugger/manual_tests/debugger-pause-on-else-statements.html
@@ -0,0 +1,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.

Powered by Google App Engine
This is Rietveld 408576698