Script API - v26.50.24
    Preparing search index...

    Manages data, display tabs and views used by the Minecraft Bedrock Debugger VS Code extension for live diagnostics.

    export class DiagnosticsManager {
    private constructor();
    readonly tabs: DiagnosticsTab[];
    addTab(tab: DiagnosticsTab): void;
    containsTab(tab: DiagnosticsTab): boolean;
    containsView(view: DiagnosticsView): boolean;
    createTab(tabName: string): DiagnosticsTab;
    createView(statName: string, options?: DiagnosticsChartViewOptions | DiagnosticsTableViewOptions): DiagnosticsView;
    removeTab(tab: DiagnosticsTab): void;
    }
    Index

    Constructors

    Properties

    The list of currently registered diagnostic tabs (constrained to this pack).

    This property can't be read in early-execution mode.

    Methods

    • Parameters

      • tab: DiagnosticsTab

        The DiagnosticsTab instance to add to the display.

      Returns void

      Adds an existing DiagnosticsTab instance to the live diagnostics display in the debugger

      This function can't be called in early-execution mode.

    • Parameters

      Returns boolean

      Returns whether the given tab is currently registered and used in the live diagnostics display.

      This function can't be called in early-execution mode.

    • Parameters

      Returns boolean

      Returns whether the given view is currently registered and used by any tab in the live diagnostics display.

      This function can't be called in early-execution mode.

    • Parameters

      • tabName: string

        The name of the tab for creation and display.

      Returns DiagnosticsTab

      Creates a new DiagnosticsTab and adds it to the live diagnostics display in the debugger

      This function can throw errors.

      DiagnosticsError

      This function can't be called in early-execution mode.