Browse Source

[debugger] rename function, add it to ignore list

Fedor Indutny 13 years ago
parent
commit
79265fe389
  1. 8
      lib/_debugger.js

8
lib/_debugger.js

@ -655,7 +655,7 @@ function Interface() {
var proto = Interface.prototype, var proto = Interface.prototype,
ignored = ['pause', 'resume', 'exitRepl', 'handleBreak', ignored = ['pause', 'resume', 'exitRepl', 'handleBreak',
'requireConnection', 'killChild', 'trySpawn', 'requireConnection', 'killChild', 'trySpawn',
'controlEval', 'debugEval', 'print'], 'controlEval', 'debugEval', 'print', 'childPrint'],
synonym = { synonym = {
'run': 'r', 'run': 'r',
'cont': 'c', 'cont': 'c',
@ -715,7 +715,7 @@ Interface.prototype.print = function(text) {
process.stdout.write(text + '\n'); process.stdout.write(text + '\n');
}; };
Interface.prototype.foreignPrint = function(text) { Interface.prototype.childPrint = function(text) {
this.print(text.toString().split(/\r\n|\r|\n/g).filter(function(chunk) { this.print(text.toString().split(/\r\n|\r|\n/g).filter(function(chunk) {
return chunk; return chunk;
}).map(function(chunk) { }).map(function(chunk) {
@ -1103,8 +1103,8 @@ Interface.prototype.trySpawn = function(cb) {
this.child = spawn(process.execPath, args, { customFds: [0, 1, 2] }); this.child = spawn(process.execPath, args, { customFds: [0, 1, 2] });
this.child.stdout.on('data', this.foreignPrint.bind(this)); this.child.stdout.on('data', this.childPrint.bind(this));
this.child.stderr.on('data', this.foreignPrint.bind(this)); this.child.stderr.on('data', this.childPrint.bind(this));
this.pause(); this.pause();

Loading…
Cancel
Save