Browse Source

debugger: add uncaughtException handler to kill child

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
53f29d86c0
  1. 8
      lib/_debugger.js

8
lib/_debugger.js

@ -7,6 +7,14 @@ exports.port = 5858;
exports.start = function() {
var interface = new Interface();
process.on('uncaughtException', function (e) {
console.error("There was an internal error in Node's debugger. " +
"Please report this bug.");
console.error(e.message);
console.error(e.stack);
if (interface.child) interface.child.kill();
process.exit(1);
});
};

Loading…
Cancel
Save