Run Debug Sessions and Test Data Pack Functions
The /debug command lets server admins start and stop debugging sessions or run debug checks on data pack functions in Minecraft Java Edition. It requires permission level 3, so only server admins and operators with the right permissions can use it.
Players and map makers mainly use this command when creating custom data packs or checking server status. You can use it to start a session, stop a session, or target a specific function or function tag.
/debug function <name>/debug start/debug stop/debug start/debug stop/debug function <name>| Argument | Type | What it means |
|---|---|---|
<name> | function | Specifies a function or a #function tag from an active data pack. |
/debug startBegins a standard debug session on the server.
/debug stopEnds the active debug session.
/debug function custom:setupDebugs a single function named setup inside the custom namespace.
/debug function minigame:arena/resetDebugs a function located inside a subfolder of the minigame data pack.
/debug function #custom:all_tasksDebugs a function tag that groups multiple functions together in the custom namespace.
/debug function #adventure: puzzles/checkDebugs a function tag stored in a subfolder of the adventure data pack.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have a command with the name /debug. This command is only available in Minecraft Java Edition.
You need permission level 3 (Server admin) to run the /debug command in Minecraft Java Edition.
The /debug report syntax was added in Java Edition 1.14.4, but it was removed in version 1.17 when /debug function <name> was introduced.
No, Bedrock Edition has no command with this name, so you can only use it in Java Edition.