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

Function runTests

test/parallel/test-inspector-async-stack-traces-set-interval.js:26–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26async function runTests() {
27 const instance = new NodeInstance(undefined, script);
28 const session = await instance.connectInspectorSession();
29 await session.send({ method: 'NodeRuntime.enable' });
30 await session.waitForNotification('NodeRuntime.waitingForDebugger');
31 await session.send([
32 { 'method': 'Runtime.enable' },
33 { 'method': 'Debugger.enable' },
34 { 'method': 'Debugger.setAsyncCallStackDepth',
35 'params': { 'maxDepth': 10 } },
36 { 'method': 'Debugger.setBlackboxPatterns',
37 'params': { 'patterns': [] } },
38 { 'method': 'Runtime.runIfWaitingForDebugger' },
39 ]);
40 await session.send({ method: 'NodeRuntime.disable' });
41
42 await skipFirstBreakpoint(session);
43 await checkAsyncStackTrace(session);
44
45 console.error('[test]', 'Stopping child instance');
46 session.disconnect();
47 instance.kill();
48}
49
50runTests().then(common.mustCall());

Calls 8

killMethod · 0.95
skipFirstBreakpointFunction · 0.85
waitForNotificationMethod · 0.80
checkAsyncStackTraceFunction · 0.70
sendMethod · 0.65
disconnectMethod · 0.65
errorMethod · 0.45

Tested by

no test coverage detected