MCPcopy Create free account
hub / github.com/nodejs/node / connect

Function connect

deps/v8/test/inspector/sessions/pause-on-console-assert.js:46–54  ·  view source on GitHub ↗
(contextGroup, num)

Source from the content-addressed store, hash-verified

44})();
45
46async function connect(contextGroup, num) {
47 var session = contextGroup.connect();
48 await session.Protocol.Debugger.enable();
49 session.Protocol.Debugger.onPaused(message => {
50 InspectorTest.log(`Paused in ${num} with reason ${message.params.reason}`);
51 session.Protocol.Debugger.resume();
52 });
53 return session;
54}

Callers 1

Calls 5

onPausedMethod · 0.80
connectMethod · 0.65
resumeMethod · 0.65
enableMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected