|
@ -1,5 +1,6 @@ |
|
|
'use strict'; |
|
|
'use strict'; |
|
|
|
|
|
|
|
|
|
|
|
const internalUtil = require('internal/util'); |
|
|
const util = require('util'); |
|
|
const util = require('util'); |
|
|
const path = require('path'); |
|
|
const path = require('path'); |
|
|
const net = require('net'); |
|
|
const net = require('net'); |
|
@ -31,7 +32,7 @@ exports.start = function(argv, stdin, stdout) { |
|
|
stdin.resume(); |
|
|
stdin.resume(); |
|
|
|
|
|
|
|
|
process.on('uncaughtException', function(e) { |
|
|
process.on('uncaughtException', function(e) { |
|
|
console.error("There was an internal error in Node's debugger. " + |
|
|
internalUtil.error('There was an internal error in Node\'s debugger. ' + |
|
|
'Please report this bug.'); |
|
|
'Please report this bug.'); |
|
|
console.error(e.message); |
|
|
console.error(e.message); |
|
|
console.error(e.stack); |
|
|
console.error(e.stack); |
|
@ -520,7 +521,7 @@ Client.prototype.mirrorObject = function(handle, depth, cb) { |
|
|
cb = cb || function() {}; |
|
|
cb = cb || function() {}; |
|
|
this.reqLookup(propertyRefs, function(err, res) { |
|
|
this.reqLookup(propertyRefs, function(err, res) { |
|
|
if (err) { |
|
|
if (err) { |
|
|
console.error('problem with reqLookup'); |
|
|
internalUtil.error('problem with reqLookup'); |
|
|
cb(null, handle); |
|
|
cb(null, handle); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@ -1668,7 +1669,7 @@ Interface.prototype.trySpawn = function(cb) { |
|
|
process._debugProcess(pid); |
|
|
process._debugProcess(pid); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
if (e.code === 'ESRCH') { |
|
|
if (e.code === 'ESRCH') { |
|
|
console.error(`Target process: ${pid} doesn't exist.`); |
|
|
internalUtil.error(`Target process: ${pid} doesn't exist.`); |
|
|
process.exit(1); |
|
|
process.exit(1); |
|
|
} |
|
|
} |
|
|
throw e; |
|
|
throw e; |
|
@ -1737,7 +1738,7 @@ Interface.prototype.trySpawn = function(cb) { |
|
|
function connectError() { |
|
|
function connectError() { |
|
|
// If it's failed to connect 10 times then print failed message
|
|
|
// If it's failed to connect 10 times then print failed message
|
|
|
if (connectionAttempts >= 10) { |
|
|
if (connectionAttempts >= 10) { |
|
|
console.error(' failed, please retry'); |
|
|
internalUtil.error(' failed to connect, please retry'); |
|
|
process.exit(1); |
|
|
process.exit(1); |
|
|
} |
|
|
} |
|
|
setTimeout(attemptConnect, 500); |
|
|
setTimeout(attemptConnect, 500); |
|
|