DebugSession

interface DebugSession(source)

A debug session.

Online Documentation

Properties

Link copied to clipboard

The "resolved" debug configuration of this session. "Resolved" means that

Link copied to clipboard
abstract val id: String

The unique ID of this debug session.

Link copied to clipboard
abstract var name: String

The debug session's name is initially taken from the debug configuration. Any changes will be properly reflected in the UI.

Link copied to clipboard

The parent session of this debug session, if it was created as a child.

Link copied to clipboard
abstract val type: String

The debug session's type from the debug configuration.

Link copied to clipboard

The workspace folder of this session or undefined for a folderless setup.

Functions

Link copied to clipboard
abstract fun customRequest(command: String, args: JsAny? = definedExternally): PromiseLike<JsAny?>

Send a custom request to the debug adapter.

Link copied to clipboard

Maps a breakpoint in the editor to the corresponding Debug Adapter Protocol (DAP) breakpoint that is managed by the debug adapter of the debug session. If no DAP breakpoint exists (either because the editor breakpoint was not yet registered or because the debug adapter is not interested in the breakpoint), the value undefined is returned.