Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes <mail@johannesewald.de>2012-06-04 02:23:27 +0400
committerJohannes <mail@johannesewald.de>2012-06-04 02:23:27 +0400
commitb4b2794f5a5e5977e048ff777ac53263144126e6 (patch)
tree11213db4acbb4bd220069bd426b83d9739339379 /test/debug.test.js
parentd4eea33555f4e67be674c046ff1d1a9a460af94a (diff)
changed repo-name to rewire
Diffstat (limited to 'test/debug.test.js')
-rw-r--r--test/debug.test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/debug.test.js b/test/debug.test.js
new file mode 100644
index 0000000..4a388b6
--- /dev/null
+++ b/test/debug.test.js
@@ -0,0 +1,11 @@
+"use strict"; // run code in ES5 strict mode
+
+var rewire = require("../lib/index.js");
+
+// add breakpoints in testModules/debuggerModule.js and debug this file with your IDE to
+// check if debugging works with rewire.
+var debuggerModule = rewire("./testModules/debuggerModule.js", null, {
+ someVar: "Look if you can see me in your IDE when holding at the breakpoints"
+});
+
+debuggerModule(); \ No newline at end of file