For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /debug-utilities/classes/DiagnosticsManager.md.

Class: DiagnosticsManager experimental

Beta

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

Properties

tabs

readonly tabs: DiagnosticsTab[]

Beta

Remarks

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

Methods

addTab()

addTab(tab): void

Beta

Parameters

tab

DiagnosticsTab

The DiagnosticsTab instance to add to the display.

Returns

void

Remarks

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


containsTab()

containsTab(tab): boolean

Beta

Parameters

tab

DiagnosticsTab

Returns

boolean

Remarks

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


containsView()

containsView(view): boolean

Beta

Parameters

view

DiagnosticsView

Returns

boolean

Remarks

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


createTab()

createTab(tabName): DiagnosticsTab

Beta

Parameters

tabName

string

The name of the tab for creation and display.

Returns

DiagnosticsTab

Remarks

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

Throws

This function can throw errors.

DiagnosticsError


createView()

createView(statName, options?): DiagnosticsView

Beta

Parameters

statName

string

The name of the stats data for creation and display.

options?

DiagnosticsChartViewOptions | DiagnosticsTableViewOptions

An optional set of either chart or table options to be used for modifying the display.

Returns

DiagnosticsView

The newly created DiagnosticsView instance.

Remarks

Creates a new DiagnosticsView. This view will not be added to the live diagnostics display automatically, please use DiagnosticsTab.addView to do so.

Throws

This function can throw errors.

DiagnosticsError


removeTab()

removeTab(tab): void

Beta

Parameters

tab

DiagnosticsTab

Returns

void

Remarks

Removes a previously registered tab from the live diagnostics display in the debugger