diff options
Diffstat (limited to 'test/testModules/debuggerModule.js')
-rw-r--r-- | test/testModules/debuggerModule.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/testModules/debuggerModule.js b/test/testModules/debuggerModule.js new file mode 100644 index 0000000..926c607 --- /dev/null +++ b/test/testModules/debuggerModule.js @@ -0,0 +1,13 @@ +"use strict"; // run code in ES5 strict mode
+
+// Add a breakpoint on line 6 and on line 11 and debug "debug.test.js" to test if the IDE stops at these points.
+// Watch also the variable someVar that is injected by rewire. It will be undefined at this point because
+// all injections are executed at the end of the module.
+// It's already visible because of hoisting: http://net.tutsplus.com/tutorials/javascript-ajax/quick-tip-javascript-hoisting-explained/)
+var someNumber = 0;
+
+module.exports = function () {
+ // In this line someVar will be defined.
+ someNumber++;
+ someVar;
+};
\ No newline at end of file |