Skip to content

Commit 894203d

Browse files
cjihrigofrobots
authored andcommitted
cluster: work with v8_inspector
PR-URL: #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>
1 parent 84ad31f commit 894203d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/cluster.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ function masterInit() {
304304
workerEnv.NODE_UNIQUE_ID = '' + id;
305305

306306
for (var i = 0; i < execArgv.length; i++) {
307-
var match = execArgv[i].match(/^(--debug|--debug-(brk|port))(=\d+)?$/);
307+
var match = execArgv[i].match(
308+
/^(--inspect|--debug|--debug-(brk|port))(=\d+)?$/
309+
);
308310

309311
if (match) {
310312
const debugPort = process.debugPort + debugPortOffset;

0 commit comments

Comments
 (0)