Options
All
  • Public
  • Public/Protected
  • All
Menu

A debug session.

层级

  • DebugSession

索引

Properties(6)

Readonly id

id: string

The unique ID of this debug session.

Readonly type

type: string

The debug session's type from the debug configuration.

Optional Readonly parentSession

parentSession: DebugSession

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

see

DebugSessionOptions.parentSession

name

name: string

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

Readonly workspaceFolder

workspaceFolder: undefined | WorkspaceFolder

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

Readonly configuration

configuration: DebugConfiguration

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

  • all variables have been substituted and
  • platform specific attribute sections have been "flattened" for the matching platform and removed for non-matching platforms.

Methods(2)

customRequest

  • customRequest(command: string, args?: any): Thenable<any>
  • Send a custom request to the debug adapter.

    Parameters

    • command: string
    • Optional args: any

    Returns Thenable<any>

getDebugProtocolBreakpoint

  • 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

    Returns Thenable<undefined | DebugProtocolBreakpoint>

    A promise that resolves to the Debug Adapter Protocol breakpoint or undefined.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹