1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/debugger/test/doc_cmd-dbg.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!doctype html> 1.7 + 1.8 +<html> 1.9 + <head> 1.10 + <meta charset="utf-8"/> 1.11 + <title>Debugger test page</title> 1.12 + </head> 1.13 + 1.14 + <body> 1.15 + <input type="text" value=""/> 1.16 + <input type="button" value="Click me!" onclick="test()"/> 1.17 + 1.18 + <script type="application/javascript;version=1.7"> 1.19 + let output = document.querySelector("input"); 1.20 + output.value = ""; 1.21 + 1.22 + function test() { 1.23 + debugger; 1.24 + stepIntoMe(); // step in 1.25 + 1.26 + output.value = "dbg continue"; 1.27 + debugger; 1.28 + } 1.29 + 1.30 + function stepIntoMe() { 1.31 + output.value = "step in"; // step in 1.32 + stepOverMe(); // step over 1.33 + let x = 0; // step out 1.34 + output.value = "step out"; 1.35 + } 1.36 + 1.37 + function stepOverMe() { 1.38 + output.value = "step over"; 1.39 + } 1.40 + </script> 1.41 + </body> 1.42 + 1.43 +</html>