Skip to content
Snippets Groups Projects
Commit 8b7736d6 authored by Jakob Moosbrugger's avatar Jakob Moosbrugger
Browse files

fixed typo

parent 43b38133
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ var Worker = function () { ...@@ -43,7 +43,7 @@ var Worker = function () {
); );
}); });
if (portIndex > 0) { if (portIndex >= 0) {
//set new port, ignore "-brk", it doesn't work //set new port, ignore "-brk", it doesn't work
debugVars[portIndex] = (/^--debug/.test(debugVars[portIndex]) ? "--debug=" : "--inspect=") + (process.debugPort + 1); debugVars[portIndex] = (/^--debug/.test(debugVars[portIndex]) ? "--debug=" : "--inspect=") + (process.debugPort + 1);
} }
......
...@@ -26,7 +26,7 @@ class Worker { ...@@ -26,7 +26,7 @@ class Worker {
return (/^--(debug|inspect)(-brk)?\d*/).test(debugArg); return (/^--(debug|inspect)(-brk)?\d*/).test(debugArg);
}); });
if (portIndex > 0) { //set new port, ignore "-brk", it doesn't work if (portIndex >= 0) { //set new port, ignore "-brk", it doesn't work
debugVars[portIndex] = ((/^--debug/).test(debugVars[portIndex]) ? "--debug=" : "--inspect=") + (process.debugPort + 1); debugVars[portIndex] = ((/^--debug/).test(debugVars[portIndex]) ? "--debug=" : "--inspect=") + (process.debugPort + 1);
} }
options.execArgv = options.execArgv.concat(debugVars); options.execArgv = options.execArgv.concat(debugVars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment