Skip to content

Commit c1bd3fe

Browse files
cjihrigFishrock123
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 7d4f038 commit c1bd3fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/cluster.js

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

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

310312
if (match) {
311313
if (debugPort === 0) {

0 commit comments

Comments
 (0)