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

Method waitForBreakAfterCommand

test/parallel/test-worker-debug.js:103–110  ·  view source on GitHub ↗
(command, script, line)

Source from the content-addressed store, hash-verified

101 }
102
103 async waitForBreakAfterCommand(command, script, line) {
104 const notificationPromise = waitForEvent(this, 'Debugger.paused');
105 this.post(command);
106 const notification = await notificationPromise;
107 const callFrame = notification.params.callFrames[0];
108 // eslint-disable-next-line node-core/must-call-assert
109 assert.strictEqual(callFrame.location.lineNumber, line);
110 }
111
112 post(method, parameters) {
113 const msg = {

Callers 1

testBasicWorkerDebugFunction · 0.95

Calls 2

postMethod · 0.95
waitForEventFunction · 0.70

Tested by

no test coverage detected