open - Node documentation
function open

Usage in Deno

import { open } from "node:inspector";
open(
port?: number,
host?: string,
wait?: boolean,
): Disposable

Activate inspector on host and port. Equivalent tonode --inspect=[[host:]port], but can be done programmatically after node has started.

If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client.

See the security warning regarding the hostparameter usage.

Parameters

optional
port: number = 'what was specified on the CLI'

Port to listen on for inspector connections. Optional.

optional
host: string = 'what was specified on the CLI'

Host to listen on for inspector connections. Optional.

optional
wait: boolean = false

Block until a client has connected. Optional.

Return Type

Disposable

Disposable that calls inspector.close().