The main IDebugger implementation.

Hierarchy

  • DebuggerService
    • Service

Constructors

  • Instantiate a new DebuggerService.

    Parameters

    • options: IOptions

      The instantiation options for a DebuggerService.

    Returns Service

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

    • OptionalframeId: 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 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.

    • Optionalpath: string

      Optional path to the file where to set the breakpoints.

    Returns Promise<void>