MCPcopy Index your code
hub / github.com/nodejs/node / startViaSignal

Method startViaSignal

test/common/inspector-helper.js:388–396  ·  view source on GitHub ↗
(scriptContents)

Source from the content-addressed store, hash-verified

386 }
387
388 static async startViaSignal(scriptContents) {
389 const instance = new NodeInstance(
390 ['--expose-internals', '--inspect-port=0'],
391 `${scriptContents}\nprocess._rawDebug('started');`, undefined);
392 const msg = 'Timed out waiting for process to start';
393 while (await fires(instance.nextStderrString(), msg, TIMEOUT) !== 'started');
394 process._debugProcess(instance._process.pid);
395 return instance;
396 }
397
398 onStderrLine(line) {
399 this.emit('stderr', line);

Callers 1

runTestsFunction · 0.80

Calls 2

nextStderrStringMethod · 0.95
firesFunction · 0.85

Tested by

no test coverage detected