diff --git a/lib/cluster.js b/lib/cluster.js index 7e65fe222b..8462ec34fc 100644 --- a/lib/cluster.js +++ b/lib/cluster.js @@ -305,7 +305,9 @@ function masterInit() { workerEnv.NODE_UNIQUE_ID = '' + id; for (var i = 0; i < execArgv.length; i++) { - var match = execArgv[i].match(/^(--debug|--debug-(brk|port))(=\d+)?$/); + var match = execArgv[i].match( + /^(--inspect|--debug|--debug-(brk|port))(=\d+)?$/ + ); if (match) { if (debugPort === 0) {