The main IDebugger implementation.

Hierarchy

  • DebuggerService
    • Service

Constructors

  • Instantiate a new DebuggerService.

    Parameters

    • options: IOptions

      The instantiation options for a DebuggerService.

    Returns Service

Accessors

  • get config(): IDebugger.IConfig
  • Get debugger config.

    Returns IDebugger.IConfig

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

    Returns ISignal<IDebugger, Event>

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

    Returns boolean

  • get isStarted(): boolean
  • Whether the current debugger is started.

    Returns boolean

  • get model(): IService
  • Returns the debugger service's model.

    Returns IService

  • get pauseOnExceptionChanged(): Signal<IDebugger, void>
  • A signal emitted when the pause on exception filter changes.

    Returns Signal<IDebugger, void>

  • get session(): ISession
  • Returns the current debug session.

    Returns ISession

  • set session(session): void
  • Sets the current debug session to the given parameter.

    Parameters

    • session: ISession

      the new debugger session.

    Returns void

Methods

  • Clear all the breakpoints for the current session.

    Returns Promise<void>

  • Continues the execution of the current thread.

    Returns Promise<void>

  • Request to set a variable in the global scope.

    Parameters

    • name: string

      The name of the variable.

    Returns Promise<void>

  • Requests all the defined variables and display them in the table view.

    Returns Promise<void>

  • Returns Promise<void>

  • Dispose the debug service.

    Returns void

  • Evaluate an expression.

    Parameters

    • expression: string

      The expression to evaluate as a string.

    Returns Promise<{
        indexedVariables?: number;
        memoryReference?: string;
        namedVariables?: number;
        presentationHint?: VariablePresentationHint;
        result: string;
        type?: string;
        variablesReference: number;
    }>

  • Computes an id based on the given code.

    Parameters

    • code: string

      The source code.

    Returns string

  • Get the debugger state

    Returns State

    Debugger state

  • Retrieve the content of a source file.

    Parameters

    • source: Source

      The source object containing the path to the file.

    Returns Promise<Source>

  • Whether there exists a thread in stopped state.

    Returns boolean

  • Request rich representation of a variable.

    Parameters

    • variableName: string

      The variable name to request

    • Optional frameId: number

      The current frame id in which to request the variable

    Returns Promise<IRichVariable>

    The mime renderer data model

  • Request variables for a given variable reference.

    Parameters

    • variablesReference: number

      The variable reference to request.

    Returns Promise<Variable[]>

  • Request whether debugging is available for the session connection.

    Parameters

    Returns Promise<boolean>

  • Makes the current thread run again for one step.

    Returns Promise<void>

  • Makes the current thread pause if possible.

    Returns Promise<void>

  • Enable or disable pausing on exceptions.

    Parameters

    • exceptionFilters: string[]

      The filters to use for the current debugging session.

    Returns Promise<void>

  • Add or remove a filter from the current used filters.

    Parameters

    • exceptionFilter: string

      The filter to add or remove from current filters.

    Returns Promise<void>

  • Determines if pausing on exceptions is supported by the kernel

    Returns boolean

  • Restart the debugger.

    Returns Promise<void>

  • Restore the debugger state

    Parameters

    • state: State

      Debugger state

    Returns Promise<boolean>

    Whether the state has been restored successfully or not

  • Restore the state of a debug session.

    Parameters

    • autoStart: boolean

      If true, starts the debugger if it has not been started.

    Returns Promise<void>

  • Starts a debugger. Precondition: !isStarted

    Returns Promise<void>

  • Makes the current thread step in a function / method if possible.

    Returns Promise<void>

  • Makes the current thread step out a function / method if possible.

    Returns Promise<void>

  • Stops the debugger. Precondition: isStarted

    Returns Promise<void>

  • Update all breakpoints at once.

    Parameters

    • code: string

      The code in the cell where the breakpoints are set.

    • breakpoints: IBreakpoint[]

      The list of breakpoints to set.

    • Optional path: string

      Optional path to the file where to set the breakpoints.

    Returns Promise<void>

Generated using TypeDoc