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: acd16ee38d17060183c31f8f26b8b00d0e3c6c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"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");

debugger;

debuggerModule.__set__("myNumber", 1);

debuggerModule();