Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISession

A visual debugger session.

Hierarchy

  • IObservableDisposable
    • ISession

Index

Properties

connection

connection: ISessionConnection

The API session connection to connect to a debugger.

Readonly disposed

disposed: ISignal<ISession, void>

A signal emitted when the object is disposed.

Readonly eventMessage

eventMessage: ISignal<ISession, Event>

Signal emitted for debug event messages.

Readonly isDisposed

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

Readonly isStarted

isStarted: boolean

Whether the debug session is started

Methods

dispose

  • dispose(): void
  • Dispose of the resources held by the object.

    Notes

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

    Undefined Behavior

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

    Returns void

restoreState

  • Restore the state of a debug session.

    Returns Promise<IDebugInfoResponse>

sendRequest

  • Send a debug request to the kernel.

    Type parameters

    • K: "source" | "debugInfo" | "attach" | "completions" | "configurationDone" | "continue" | "disconnect" | "dumpCell" | "evaluate" | "exceptionInfo" | "goto" | "gotoTargets" | "initialize" | "inspectVariables" | "launch" | "loadedSources" | "modules" | "next" | "pause" | "restart" | "restartFrame" | "reverseContinue" | "scopes" | "setBreakpoints" | "setExceptionBreakpoints" | "setExpression" | "setFunctionBreakpoints" | "setVariable" | "stackTrace" | "stepBack" | "stepIn" | "stepInTargets" | "stepOut" | "terminate" | "terminateThreads" | "threads" | "variables"

    Parameters

    Returns Promise<Response[K]>

start

  • start(): Promise<void>
  • Start a new debug session.

    Returns Promise<void>

stop

  • stop(): Promise<void>
  • Stop a running debug session.

    Returns Promise<void>

Generated using TypeDoc