Module

std/node/inspector.ts

Deno standard library
Go to Latest
class Session
extends EventEmitter
import { Session } from "https://deno.land/std@0.145.0/node/inspector.ts";

Constructors

new
Session()

Properties

[connectionSymbol]: null
[messageCallbacksSymbol]: Map<string, (e: Error) => void>
[nextIdSymbol]: number

Methods

connect()

Connects the session to the inspector back-end.

connectToMainThread()

Connects the session to the main thread inspector back-end.

disconnect()

Immediately closes the session, all pending message callbacks will be called with an error.

post(
_method: string,
_params?: Record<string, unknown>,
_callback?: (...args: unknown[]) => void,
): void

Posts a message to the inspector back-end.

[onMessageSymbol](_message: string)