Skip to main content
Session.prototype.connectToMainThread - inspector/promises - Node documentation
method Session.prototype.connectToMainThread

Usage in Deno

import { Session } from "node:inspector/promises";
Session.prototype.connectToMainThread(): void

Connects a session to the inspector back-end. An exception will be thrown if this API was not called on a Worker thread.

Return Type

void