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

debug.test.js « test - github.com/twbs/rewire.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a388b6ff6e8059a3a152a47e46e86958ad22aa1 (plain)
1
2
3
4
5
6
7
8
9
10
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();