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

Function setupInspector

test/sequential/test-inspector-network-resource.js:174–180  ·  view source on GitHub ↗
(session, sessionId)

Source from the content-addressed store, hash-verified

172 await session.waitForDisconnect();
173
174 async function setupInspector(session, sessionId) {
175 await session.send({ method: 'NodeRuntime.enable', sessionId });
176 await session.waitForNotification('NodeRuntime.waitingForDebugger');
177 await session.send({ method: 'Runtime.enable', sessionId });
178 await session.send({ method: 'Debugger.enable', sessionId });
179 await session.send({ method: 'Runtime.runIfWaitingForDebugger', sessionId });
180 }
181});

Calls 2

waitForNotificationMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected