feat: add inspect argument

This commit is contained in:
Barış Soner Uşaklı
2025-08-06 13:10:56 -04:00
parent 567ed8755b
commit 955b27debc

View File

@@ -106,6 +106,10 @@ function forkWorker(index, isPrimary) {
if (nconf.get('expose-gc')) {
execArgv.push('--expose-gc');
}
if (nconf.get('inspect')) {
execArgv.push('--inspect');
}
if (!ports[index]) {
return console.log(`[cluster] invalid port for worker : ${index} ports: ${ports.length}`);
}