summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html b/devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html
new file mode 100644
index 0000000000..d3772ac01f
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/doc-debugger-statements.html
@@ -0,0 +1,31 @@
+ <!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this
+ - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
+<html>
+ <head>
+ <title>Debugger Statements</title>
+ </head>
+
+ <body>
+ <script>
+ debugger;
+ test();
+ console.log('done!');
+
+ function test() {
+ debugger;
+ stepIntoMe();
+ }
+
+ function stepIntoMe() {
+ // step in
+ stepOverMe();
+ // step out
+ }
+
+ function stepOverMe() {
+ }
+ </script>
+ </body>
+
+</html>