Skip to main content

/debug

Starts or stops a debug profiling session, or profiles a specific function. Generates a profiling report in the debug folder.

Category
Special
Permission Level
Admin
Version Added
1.0

Syntax

/debug <start|stop|function> [<function>]

Parameters

NameTypeRequiredDescription
actionliteralRequiredstart = begin profiling; stop = end profiling and save report; function = profile a specific function.
functionresourceOptionalThe function to profile (only for 'function' action).

Examples

/debug start

Starts a server profiling session.

/debug stop

Stops profiling and saves the report to the debug folder.

/debug function my_pack:heavy_function

Profiles a specific function and outputs performance data.

Common Mistakes

Notes

Profiling reports are saved in the 'debug' folder within the world directory. The report includes tick timing, entity counts, and other performance data. Useful for identifying lag sources.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting