Edit

Share via


@minecraft/debug-utilities Module

Contains debug utility functions.

Caution

This module is still in pre-release. It may change or it may be removed in future releases.

Changelog

Manifest Details

{
    "module_name": "@minecraft/debug-utilities",
    "version": "1.0.0-beta"
}

This is version 1.x.x of this module, which is the latest as of version 1.21.100-beta.23 of Minecraft.

Available Versions

  • 1.0.0-beta

Classes

Interfaces

Functions

collectPluginStats

collectPluginStats(): PluginStats

Collect type usage stats for each active script plugin/add-on.

Returns PluginStats - PluginStats object.

collectRuntimeStats

collectRuntimeStats(): RuntimeStats

Collect memory stats for script runtimes.

Returns RuntimeStats - RuntimeStats object.

disableWatchdogTimingWarnings

disableWatchdogTimingWarnings(disable: boolean): void

Disable watchdog slow and spike warnings per plugin.

Parameters

  • disable: boolean

    Flag to disable or re-enable warnings.

Notes:

  • This function can throw errors.

Objects

debugDrawer

static read-only debugDrawer: DebugDrawer;

Debug Drawing class used to allow adding and removing wireframe shapes in world space.

Type: DebugDrawer

Dependencies