A visual debugger session.

interface ISession {
    capabilities: undefined | Capabilities;
    connection: null | Session.ISessionConnection;
    currentExceptionFilters: string[];
    disposed: ISignal<IDebugger.ISession, void>;
    eventMessage: ISignal<IDebugger.ISession, Event>;
    exceptionBreakpointFilters: undefined | ExceptionBreakpointsFilter[];
    exceptionPaths: string[];
    isDisposed: boolean;
    isStarted: boolean;
    dispose(): void;
    isPausingOnException(filter?: string): boolean;
    restoreState(): Promise<IDebugInfoResponse>;
    sendRequest<K extends keyof IDebugger.ISession.Request>(
        command: K,
        args: IDebugger.ISession.Request[K],
    ): Promise<Response[K]>;
    start(): Promise<void>;
    stop(): Promise<void>;
}

Hierarchy

Properties

capabilities: undefined | Capabilities

Returns the initialize response.

connection: null | Session.ISessionConnection

The API session connection to connect to a debugger.

currentExceptionFilters: string[]

Get current exception filter.

disposed: ISignal<IDebugger.ISession, void>

A signal emitted when the object is disposed.

eventMessage: ISignal<IDebugger.ISession, Event>

Signal emitted for debug event messages.

exceptionBreakpointFilters: undefined | ExceptionBreakpointsFilter[]

Get exception filters and default values.

exceptionPaths: string[]

Whether the debug session is pausing on exceptions.

isDisposed: boolean

Test whether the object has been disposed.

This property is always safe to access.

isStarted: boolean

Whether the debug session is started.

Methods

  • Dispose of the resources held by the object.

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

  • Whether the debugger is pausing on exception.

    Parameters

    • Optionalfilter: string

      Specify a filter

    Returns boolean