The main IDebugger implementation.

Hierarchy

  • DebuggerService
    • Service

Constructors

Accessors

Methods

  • Evaluate an expression.

    Parameters

    • expression: string

      The expression to evaluate as a string.

    Returns Promise<null | {
        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

  • 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[]>

  • 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

  • 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>

  • 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>