Interface IDebugger

An interface describing an application's visual debugger.

interface IDebugger {
    config: IDebugger.IConfig;
    eventMessage: ISignal<IDebugger, Event>;
    isStarted: boolean;
    model: IService;
    pauseOnExceptionChanged: Signal<IDebugger, void>;
    session: null | ISession;
    sessionChanged: ISignal<IDebugger, null | ISession>;
    clearBreakpoints(): Promise<void>;
    continue(): Promise<void>;
    copyToGlobals(name): Promise<void>;
    displayDefinedVariables(): Promise<void>;
    displayModules(): Promise<void>;
    evaluate(expression): Promise<null | {
        indexedVariables?: number;
        memoryReference?: string;
        namedVariables?: number;
        presentationHint?: VariablePresentationHint;
        result: string;
        type?: string;
        variablesReference: number;
    }>;
    getCodeId(code): string;
    getDebuggerState(): State;
    getSource(source): Promise<Source>;
    hasStoppedThreads(): boolean;
    inspectRichVariable(variableName, frameId?): Promise<IRichVariable>;
    inspectVariable(variablesReference): Promise<Variable[]>;
    isAvailable(connection): Promise<boolean>;
    next(): Promise<void>;
    pause(): Promise<void>;
    pauseOnExceptions(exceptionFilter): Promise<void>;
    pauseOnExceptionsFilter(exceptionFilter): Promise<void>;
    pauseOnExceptionsIsValid(): boolean;
    restart(): Promise<void>;
    restoreDebuggerState(state): Promise<boolean>;
    restoreState(autoStart): Promise<void>;
    start(): Promise<void>;
    stepIn(): Promise<void>;
    stepOut(): Promise<void>;
    stop(): Promise<void>;
    updateBreakpoints(code, breakpoints, path?): Promise<void>;
}

Properties

Get debugger config.

eventMessage: ISignal<IDebugger, Event>

Signal emitted for debug event messages.

isStarted: boolean

Whether the current debugger is started.

model: IService

The debugger service's model.

pauseOnExceptionChanged: Signal<IDebugger, void>

A signal emitted when the pause on exception filter changes.

session: null | ISession

The current debugger session.

sessionChanged: ISignal<IDebugger, null | ISession>

Signal emitted upon session changed.

Methods

  • Evaluate an expression.

    Parameters

    • expression: string

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

  • Request variables for a given variable reference.

    Parameters

    • variablesReference: number

      The variable reference to request.

    Returns Promise<Variable[]>

  • Update all breakpoints of a cell 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>