A debug session.

Fields

@:optionaloptionalread onlyworkspaceFolder:Null<WorkspaceFolder>

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

read onlytype:String

The debug session's type from the {@link DebugConfiguration debug configuration}.

read onlyparentSession:Null<DebugSession>

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

See also:

  • DebugSessionOptions.parentSession

name:String

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

read onlyid:String

The unique ID of this debug session.

getDebugProtocolBreakpoint(breakpoint:Breakpoint):Thenable<Null<DebugProtocolBreakpoint>>

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.

@link Breakpoint} in the editor.

Parameters:

breakpoint

A {

Returns:

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

customRequest(command:String, ?args:Any):Thenable<Any>

Send a custom request to the debug adapter.

read onlyconfiguration:DebugConfiguration

The "resolved" {@link DebugConfiguration 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.