Package-level declarations

Types

Link copied to clipboard
external class _Session : EventEmitter

The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.

Link copied to clipboard
sealed external interface InspectorConsole
Link copied to clipboard
sealed external interface InspectorNotification<T>
Link copied to clipboard
external class Session : EventEmitter

The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.

Link copied to clipboard
sealed external interface SessionEvent
Link copied to clipboard
sealed external interface SessionMethod

Properties

Link copied to clipboard

An object to send messages to the remote inspector console.

Functions

Link copied to clipboard
external fun close()

Deactivate the inspector. Blocks until there are no active connections.

Link copied to clipboard
external fun open(port: Number = definedExternally, host: String = definedExternally, wait: Boolean = definedExternally): Disposable

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

Link copied to clipboard
external fun url(): String?

Return the URL of the active inspector, or undefined if there is none.

Link copied to clipboard
external fun waitForDebugger()

Blocks until a client (existing or connected later) has sent Runtime.runIfWaitingForDebugger command.