I am doing my baby steps in node.js and I am trying to understand the mechanism of the sandbox.
I am currently using node v4.0.0 and the node inspector v0.12.3.
I installed the gf3 / sandbox module and ran it with this simple code:
var s = new Sandbox(); s.run('1 + 1 + " apples"',function(output) { console.log(output.result); });
To easily debug, I also commented on the timeout function in the sandbox.js file:
// timer = setTimeout(function() { // self.child.stdout.removeListener('output', output); // stdout = JSON.stringify({ result: 'TimeoutError', console: [] }); // self.child.kill('SIGKILL'); // }, self.options.timeout);
The problem is that debugging CANNOT break ANY shovel.js line shovel.js , and I'm 100% sure that the module uses its code.
Why? And what can I do to debug shovel.js ?
ohadinho
source share