};
-var args = process.argv.slice(2);
-args.unshift('--debug-brk');
-
//
// This class is the repl-enabled debugger interface which is invoked on
// "node debug"
-function Interface(stdin, stdout) {
+function Interface(stdin, stdout, args) {
var self = this,
child;
this.stdin = stdin;
this.stdout = stdout;
+ this.args = args;
var streams = {
stdin: stdin,
this.killChild();
- this.child = spawn(process.execPath, args);
+ this.child = spawn(process.execPath, this.args);
this.child.stdout.on('data', this.childPrint.bind(this));
this.child.stderr.on('data', this.childPrint.bind(this));