diff --git a/lib/cluster.js b/lib/cluster.js index 6e4dc4004e..1051291312 100644 --- a/lib/cluster.js +++ b/lib/cluster.js @@ -266,7 +266,7 @@ function masterInit() { var key; for (key in cluster.workers) { var worker = cluster.workers[key]; - if (worker.state === 'online') { + if (worker.state === 'online' || worker.state === 'listening') { process._debugProcess(worker.process.pid); } else { worker.once('online', function() {