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

Method connect

lib/inspector.js:63–67  ·  view source on GitHub ↗

* Connects the session to the inspector back-end. * @returns {void}

()

Source from the content-addressed store, hash-verified

61 * @returns {void}
62 */
63 connect() {
64 if (this.#connection)
65 throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session');
66 this.#connection = new Connection((message) => this.#onMessage(message));
67 }
68
69 /**
70 * Connects the session to the main thread

Callers 11

testFunction · 0.95
testConsoleLogFunction · 0.95
testFunction · 0.95
testFunction · 0.95
testFunction · 0.95
testSampleDebugSessionFunction · 0.95
callInspectorResumeFunction · 0.95
enableCPUProfilerFunction · 0.95

Calls 1

#onMessageMethod · 0.95

Tested by 4

testFunction · 0.76
testFunction · 0.76
testFunction · 0.76
testFunction · 0.76