Interface DebugSession

A debug session.

interface DebugSession {
    configuration: DebugConfiguration;
    id: string;
    name: string;
    parentSession?: DebugSession;
    type: string;
    workspaceFolder: undefined | WorkspaceFolder;
    customRequest(command, args?): Thenable<any>;
    getDebugProtocolBreakpoint(breakpoint): PromiseLike<undefined | DebugProtocolBreakpoint>;
}

Implemented by

Properties

configuration: DebugConfiguration

The "resolved" debug configuration of this session.

id: string

The unique ID of this debug session.

name: string

The debug session's name from the debug configuration.

parentSession?: DebugSession

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

See

DebugSessionOptions.parentSession

type: string

The debug session's type from the debug configuration.

workspaceFolder: undefined | WorkspaceFolder

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

Methods

  • 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.

    Parameters

    • breakpoint: Breakpoint

      a Breakpoint in the editor.

    Returns PromiseLike<undefined | DebugProtocolBreakpoint>