Browse Source

cluster: work with v8_inspector

PR-URL: https://github.com/nodejs/node/pull/6792
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: addaleax - Anna Henningsen <anna@addaleax.net>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
v6.x
cjihrig 9 years ago
committed by Jeremiah Senkpiel
parent
commit
c1bd3fe14c
  1. 4
      lib/cluster.js

4
lib/cluster.js

@ -305,7 +305,9 @@ function masterInit() {
workerEnv.NODE_UNIQUE_ID = '' + id; workerEnv.NODE_UNIQUE_ID = '' + id;
for (var i = 0; i < execArgv.length; i++) { 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 (match) {
if (debugPort === 0) { if (debugPort === 0) {

Loading…
Cancel
Save