Commands/debug

Starts or stops a time profiler session. Gets more detailed information of function execution.

Syntax

 * Starts a new debug time profiler session.


 * Stops the active debug time profiler session.


 * Used the same way as /function to get more detailed information of commands' execution.

Function trace
When using, a txt file titled debug-trace-yyyy-MM-dd_HH.mm.ss.txt is created in .minecraft/debug.

In this file,
 * means the  is executed.
 * means a message is returned.
 * means a failure message is returned.
 * means the  returns a brigadier return value.
 * means the  is executed and returns a brigadier return value.
 * means a function is called.

For most of commands, the brigadier return value is equal to the result value that can be stored with.

But for  with one or more of the following subcommands, the brigadier return value is the number of times that the last subcommand is executed successfully:
 * (not at the end)
 * (not at the end)

Profile result
When using, a txt file titled profile-results-yyyy-MM-dd_HH.mm.ss.txt is created in .minecraft/debug , which includes the result of profile dump.

Report
When using, a ZIP file is created with in .minecraft/debug/profiling the following structure:
 * debug-report-yyyy-MM-dd_HH.mm.ss.zip
 * levels
 * minecraft or  
 * overworld or the_end or the_nether or  
 * block_entities.csv: Contains a list of block entities in the world in the format.
 * chunks.csv: Contains a list of chunk information in the format.
 * entities.csv: Contains a list of entities in the world in the format.
 * example_crash.txt: An example crash file.
 * stats.txt: Contains some stats.
 * classpath.txt: Contains the file paths of the external jars Minecraft uses.
 * example_crash.txt: An example crash file.
 * gamerules.txt: A plain text file containing a list of game rules and their values.
 * stats.txt: Contains some stats.
 * threads.txt: All running threads.

History
Befehl/debug Comandos/debug 命令/debug