Skip to content

Commit

Permalink
cluster: work with v8_inspector
Browse files Browse the repository at this point in the history
PR-URL: nodejs#6792
Reviewed-By: jasnell - James M Snell <[email protected]>
Reviewed-By: addaleax - Anna Henningsen <[email protected]>
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
  • Loading branch information
cjihrig authored and ofrobots committed May 30, 2016
1 parent 84ad31f commit 894203d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,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) {
const debugPort = process.debugPort + debugPortOffset;
Expand Down

0 comments on commit 894203d

Please sign in to comment.