method Session.prototype.connectToMainThread
Usage in Deno
```typescript
import { Session } from "node:node__inspector.d.ts";
```
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.