Options
All
  • Public
  • Public/Protected
  • All
Menu

A concrete implementation of IDebugger.ISession.

Hierarchy

  • DebuggerSession
    • Session

Index

Constructors

constructor

  • new Session(options: IOptions): Session
  • Instantiate a new debug session

    Parameters

    • options: IOptions

      The debug session instantiation options.

    Returns Session

Properties

Protected translator

translator: ITranslator

Accessors

connection

  • Returns the API session connection to connect to a debugger.

    Returns ISessionConnection

  • Sets the API session connection to connect to a debugger to the given parameter.

    Parameters

    Returns void

disposed

  • get disposed(): ISignal<this, void>
  • A signal emitted when the debug session is disposed.

    Returns ISignal<this, void>

eventMessage

  • get eventMessage(): ISignal<ISession, Event>
  • Signal emitted for debug event messages.

    Returns ISignal<ISession, Event>

isDisposed

  • get isDisposed(): boolean
  • Whether the debug session is disposed.

    Returns boolean

isStarted

  • get isStarted(): boolean
  • Whether the debug session is started

    Returns boolean

Methods

dispose

  • dispose(): void
  • Dispose the debug session.

    Returns void

restoreState

  • Restore the state of a debug session.

    Returns Promise<IDebugInfoResponse>

sendRequest

  • Send a custom 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

    • command: K

      debug command.

    • args: Request[K]

      arguments for the debug command.

    Returns Promise<Response[K]>

start

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

    Returns Promise<void>

stop

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

    Returns Promise<void>

Generated using TypeDoc