Debug property

This article is a work in progress.
 
Please help expand and improve it. The talk page may contain suggestions.
This feature is exclusive to Java Edition.
 
These features are intended for debugging purposes only, and should not be used during normal play. They might cause crashes and corrupt world saves.

Debug properties or debug flags are JVM properties that enable various debug features in the game.

Usage

To enable debug features, JVM properties must be set when launching the game. To enable any feature, the global flag -DMC_DEBUG_ENABLED must be set. Then a specific feature can be enabled using -DMC_DEBUG_<name> or -DMC_DEBUG_<name>=<value> flag.

List of debug properties

Name Description Introduced in Removed in
[Boolean] ENABLED Enables the effects of all properties listed below. 25w37a -
[Boolean] PRINT_PROPERTIES Prints all available debug properties to the output log on startup. 25w37a -
[Boolean] OPEN_INCOMPATIBLE_WORLDS Allows opening worlds otherwise deemed incompatible without confirmation, such as from April Fools' versions. 25w37a -
[Boolean] ALLOW_LOW_SIM_DISTANCE Allows setting the client simulation distance to a value as low as 2, instead of 5. 25w37a -
[Boolean] HOTKEYS Adds additional debug hotkeys. See Debug hotkey § Disabled hotkeys for the full list. 25w37a -
[Boolean] UI_NARRATION Allows narration code to run even when the text-to-speech library cannot load the operating system's narrator (as long as the operating system is supported). 25w37a -
[Boolean] SHUFFLE_UI_RENDERING_ORDER Constantly shuffles the rendering order of many UI elements. 25w37a -
[Boolean] SHUFFLE_MODELS Constantly shuffles the render order of entity and block entity model elements. 25w37a -
[Boolean] RENDER_UI_LAYERING_RECTANGLES Renders bounding boxes for UI elements as translucent blue rectangles. 25w37a -
[Boolean] PATHFINDING Enables debug rendering of the pathfinding of mobs. 25w37a -
[Boolean] WATER[until JE 1.21.11] Enables the visualize_water_levels debug renderer. 25w37a 25w41a
[Boolean] HEIGHTMAP[until JE 1.21.11] Enables the visualize_heightmap debug renderer. 25w37a 25w41a
[Boolean] COLLISION[until JE 1.21.11] Enables the visualize_collision_boxes debug renderer. 25w37a 25w41a
[Boolean] SHOW_LOCAL_SERVER_ENTITY_HIT_BOXES Extends the entity hitbox debug renderer with the hitbox as seen by the server (only works in singleplayer). 25w37a -
[Boolean] SUPPORT_BLOCKS[until JE 1.21.11] Enables the visualize_entity_supporting_block debug renderer. 25w37a 25w41a
[Boolean] SHAPES Renders the general shape (white), collision box (gray), occlusion shape (green, the part of the block that occludes other blocks for culling) and interaction box (blue) of the targeted block. 25w37a -
[Boolean] NEIGHBORSUPDATE Enables debug rendering showing the amount of block updates each block received in a single tick the last time it got updated. 25w37a -
[Boolean] EXPERIMENTAL_REDSTONEWIRE_UPDATE_ORDER Enables debug rendering of the orientation of redstone wire when the "Redstone Experiments" experiment is enabled. Shows the forward (blue), side (yellow), and up (red) directions of each redstone wire update. 25w37a -
[Boolean] STRUCTURES Enables debug rendering of the bounding boxes of structures and structure pieces. 25w37a -
[Boolean] LIGHT[until JE 1.21.11] Enables the visualize_sky_light_levels debug renderer. 25w37a 25w41a
[Boolean] SKY_LIGHT_SECTIONS[until JE 1.21.11] Enables the visualize_sky_light_sections debug renderer. 25w37a 25w41a
[Boolean] SOLID_FACE[until JE 1.21.11] Enables the visualize_solid_faces debug renderer. 25w37a 25w41a
[Boolean] CHUNKS[until JE 1.21.11] Enables the visualize_chunks_on_server debug renderer. 25w37a 25w41a
[Boolean] GAME_EVENT_LISTENERS Highlights blocks and entities that listen to game events. When a game event occurs, its origin position is shown along with the game event type. 25w37a -
[Boolean] DUMP_TEXTURE_ATLAS Dumps all texture atlases to the .minecraft/screenshots/debug directory on every resource load or reload, similarly to the F3 + S debug keybind. 25w37a -
[Boolean] DUMP_INTERPOLATED_TEXTURE_FRAMES Dumps all animation frames for animated sprites with interpolation in a texture atlas to the .minecraft/screenshots/debug directory on every resource load or reload. 25w37a -
[Boolean] STRUCTURE_EDIT_MODE When loading a structure file in a structure block, structure voids are preserved. Also, containers with random loot do not get the [Long] LootTableSeed field set. This allows re-saving the structure file without modifications. 25w37a -
[Boolean] SAVE_STRUCTURES_AS_SNBT When saving a structure using a structure block, the structure is saved as SNBT in a .snbt file, instead of NBT in a .nbt file. 25w37a -
[Boolean] SYNCHRONOUS_GL_LOGS Sets the GL_DEBUG_OUTPUT_SYNCHRONOUS OpenGL flag. See the OpenGL docs and LWJGL docs for details. Requires OpenGL 4.3 or later. 25w37a -
[Boolean] VERBOSE_SERVER_EVENTS Adds lines in the game log:
  • When a chunk's load level changes.
  • When a new chunk task (new chunk generation, light engine, or player load) is submitted.
  • When the game computes chunk load levels.
  • When a chunk's lighting is updated.
  • When a chunk is sent to a client.
  • When a chunk load ticket is added.
  • When a chunk load ticket is removed.
25w37a -
[Boolean] NAMED_RUNNABLES Adds debugging names to certain Runnable and Supplier objects, useful for modders and developers. Has no effect on the vanilla game. 25w37a -
[Boolean] GOAL_SELECTOR Displays the goals of most mobs above their head, highlighting the currently running goals in green. Goal names are not readable without modding due to obfuscation. 25w37a -
[Boolean] VILLAGE_SECTIONS Highlights chunk sections within the bounds of a village. 25w37a -
[Boolean] BRAIN Displays information about the brain AI of villagers, armadillos, frogs, goats, sniffers, camels, axolotls, allays, breezes, piglins, piglin brutes, hoglins, zoglins, tadpoles, wardens, creakings, happy ghasts, and copper golems. 25w37a -
[Boolean] POI Visualizes the location of points of interest and shows data about them. 25w37a -
[Boolean] BEES Shows text above every bee, detailing its associated bee hive and flower positions, "travelTicks" and "blacklistedHives". ​[more information needed] 25w37a -
[Boolean] RAIDS Displays the following information about raids:
  • Raid center position
  • Raid wave number in the bossbar
  • Number of raiders alive in the bossbar
  • If the wave is an extra wave in the bossbar
  • Raid status (ongoing, victory, loss, or stopped) in the bossbar
25w37a -
[Boolean] BLOCK_BREAK Adds lines in the game log when the player starts, aborts, or completes the breaking of a block, and when receiving a block breaking event from the server. 25w37a -
[Boolean] MONITOR_TICK_TIMES Whenever a single tick takes longer than 300ms, saves profiler results to debug/Renderer (if on the client), or debug/Server (if on the server). 25w37a -
[Boolean] KEEP_JIGSAW_BLOCKS_DURING_STRUCTURE_GEN Prevents replacing jigsaw blocks when generating jigsaw structures. 25w37a -
[Boolean] DONT_SAVE_WORLD Disables saving chunks, entities (excluding players), and points of interest to disk. This results in all chunks to be regenerated every time they get reloaded, and all player modifications to to be deleted. Advancements, statistics, active raids, world borders, random sequences, and everything in level.dat are still saved. 25w37a -
[Boolean] LARGE_DRIPSTONE When generating large dripstone features:
  • Replaces all dripstone blocks with glass.
  • Places a diamond block at the top of the stalactite and a gold block at the bottom of the stalagmite.
  • Places creeper heads in the empty space between the stalactite and the stalagmite.
25w37a -
[Boolean] CARVERS Enables debug_mode for all cave carvers. For vanilla worldgen:
  • Fills the area carved with crimson buttons (cave carvers), oak buttons ("extra underground" cave carvers), or warped buttons (canyon carvers).
  • Places candles in water.
  • Replaces lava with orange stained glass.
  • Places glass on the barrier between aquifers and the carved area.
25w37a -
[Boolean] ORE_VEINS Generates oak buttons instead of the filler blocks when generating ore veins. No other blocks are generated other than structures and bodies of water and lava. 25w37a -
[Boolean] SCULK_CATALYST Stores additional statistics in the sculk catalyst block entity data about the total, single maximum value and average cursor charge, as well as how many cursors are present.
  • [Int] stats.total: The sum of all sculk charge experience.
  • [Int] stats.count: The number of sculk charges.
  • [Int] stats.max: The amount of experience stored in the largest sculk charge.
  • [Int] stats.avg: The average experience stored across all sculk charges.
25w37a -
[Boolean] BYPASS_REALMS_VERSION_CHECK Bypasses all Realms availability checks, including version checking, authentication, and whether the user is allowed to access Realms. This only allows opening the Realms menus and cannot be used to join Realms without authentication. 25w37a -
[Boolean] SOCIAL_INTERACTIONS Allows opening the social interactions menu in singleplayer. Adds the current player and any blocked players to the reporting screen. Allows opening the report screen even if chat is disabled due to options, a launcher argument, or Minecraft account settings. 25w37a -
[Boolean] VALIDATE_RESOURCE_PATH_CASE Forces resource packs to only load files if the case matches exactly (for example, if a resource pack tries to find path/to/file.json but the file is actually at path/to/File.json, it will fail). If the file is on a different file system type than the system's default (such as the file system for loading files bundled with the game's JAR file), validation is skipped. 25w37a -
[Boolean] UNLOCK_ALL_TRADES Villagers immediately choose and unlock trades up to their max level. 25w37a -
[Boolean] BREEZE_MOB Renders debug lines for breeze path finding when one is targeting a player ​[more information needed] 25w37a -
[Boolean] TRIAL_SPAWNER_DETECTS_SHEEP_AS_PLAYERS Makes trial spawners react to nearby sheep instead of players. 25w37a -
[Boolean] VAULT_DETECTS_SHEEP_AS_PLAYERS Makes vaults react to nearby sheep instead of players. 25w37a -
[Boolean] FORCE_ONBOARDING_SCREEN Shows the accessibility onboarding screen on game startup, even if this is not the first startup. 25w37a -
[Boolean] CURSOR_POS Shows the current cursor coordinates below the cursor, with (0, 0) being the top left of the Minecraft window. 25w37a -
[Boolean] DEFAULT_SKIN_OVERRIDE Disables custom skins, causing all players to have a default skin. 25w37a -
[Boolean] PANORAMA_SCREENSHOT Allows pressing Ctrl + F2 to capture a panoramic screenshot. Saved as panorama_0.png to panorama_5.png in the screenshots folder, overriding any previously captured panoramic screenshot. 25w37a -
[Boolean] CHASE_COMMAND Enables the /chase command. 25w37a -
[Boolean] VERBOSE_COMMAND_ERRORS Instead of printing "An unexpected error occurred trying to execute that command", prints the error message and logs the exception stack trace. 1.21.9-pre1 -
[Boolean] DEV_COMMANDS Enables the /raid, /debugpath, /debugmobspawning, /warden_spawn_tracker, /spawn_armor_trims, and /serverpack commands. On a dedicated server also enables the /debugconfig command. 1.21.9-pre1 -
[Boolean] ACTIVE_TEXT_AREAS[upcoming JE 1.21.11] Highlights text components rendered in the UI. The highlights alternate between light and dark colors every character.
  • Normal text is highlighted in blue.
  • Text with a click_event tag is highlighted in light purple.
  • Text with a hover_event tag is highlighted in aqua.
  • Text with both click_event and hover_event tags is highlighted in yellow.
25w42a -
[Boolean] IGNORE_LOCAL_MOB_CAP Mob spawns ignore the local, per-player mob cap. The global mob cap is not ignored. 25w37a -
[Boolean] DISABLE_LIQUID_SPREADING Disables the flowing of liquids. 25w37a -
[Boolean] AQUIFERS At positive Z coordinates, places strips of slime blocks (below sea level) and honey blocks (above sea level) marking the position 8 blocks above the preliminary surface height. 25w37a -
[Boolean] JFR_PROFILING_ENABLE_LEVEL_LOADING Automatically enables JFR profiling for the level loading, and stops when level loading is complete. 25w37a -
[Boolean] ENTITY_BLOCK_INTERSECTION Highlights blocks in green that intersect an entity, e.g. when a chicken is standing inside tall grass. Also highlights all air blocks in grey that the player touched recently. 25w37a -
[Boolean] GENERATE_SQUARE_TERRAIN_WITHOUT_NOISE Only generates terrain between 0, 0 and 8207, 1039. In the Overworld, generates simplified terrain where:
  • Desert and badlands biomes generate when erosion noise matches certain ranges.
  • Snowy taiga biomes generate when continentalness noise matches certain ranges.
  • Plains biomes generate everywhere else.
25w37a -
[Boolean] ONLY_GENERATE_HALF_THE_WORLD Only generate blocks with Z ≥ 0. Features may extend into negative Z positions. Liquids can't flow onto blocks with Z < 0. If WORLD_RECREATE is also enabled, the spawn point is set to 0, -100. 25w37a -
[Boolean] DISABLE_FLUID_GENERATION Disables fluid generation. Features and structures can still generate fluids. 25w37a -
[Boolean] DISABLE_AQUIFERS Disables aquifer generation. 25w37a -
[Boolean] DISABLE_SURFACE Disables surface rules, causing the Overworld to generate without its surface grass and dirt layers. 25w37a -
[Boolean] DISABLE_CARVERS Worlds generate without cave carvers. 25w37a -
[Boolean] DISABLE_STRUCTURES Worlds generate without structures. 25w37a -
[Boolean] DISABLE_FEATURES Disables feature generation. Explorer maps will not try to find nearby structures. 25w37a -
[Boolean] DISABLE_ORE_VEINS Disables ore vein generation. 25w37a -
[Boolean] DISABLE_BLENDING Disables easing the transition between chunks generated in different versions, known as blending. Also disables scheduling ticks for blocks in old chunks on the border of a newly generated chunk to assist with blending. 25w37a -
[Boolean] DISABLE_BELOW_ZERO_RETROGENERATION Worlds created before 1.18 will not generate caves under the old bedrock floor. 25w37a -
[Boolean] SUBTITLES Shows raw translation keys for the subtiles, and a warning when a sound event is missing. 25w37a -
[Int] FAKE_LATENCY_MS Introduces artificial latency between the client and server, similar to slow internet connections. 25w37a -
[Int] FAKE_JITTER_MS Introduces a random artificial latency within 0 and jitter - 1 milliseconds between the client and server, similar to slow internet connections. 25w37a -
[Boolean] COMMAND_STACK_TRACES Adds stack traces to Brigadier CommandSyntaxException, allowing developers to investigate the code path before the exception occurred. 25w37a -
[Boolean] WORLD_RECREATE Adds a "DEBUG recreate" button to the world selection screen, that creates a world with name "DEBUG world" (deleting a world with that name if it already exists) with seed "test1" (110251487) in Spectator mode.
Changes the default values for the doDaylightCycle and doWeatherCycle game rules to false in all new worlds.
25w37a -
[Boolean] SHOW_SERVER_DEBUG_VALUES Adds server-side biome and light levels to the debug screen, and replaces the client-side looking at block/fluid values with server-side values. 25w37a -
[Boolean] FEATURE_COUNT Keeps track of how many times features were placed over time. Press L to print feature counts and other debugging information in the following order:
  • Whether the dimension is "running" or "dead".
  • The dimension.
  • The number of times the feature was placed.
  • The average feature placements per chunk.
  • The placed feature used for biome checking, may or may not be present.
  • The configured feature.
  • The feature itself that was placed.

Press R to reset the feature placement counts.

25w37a -
[Boolean] FORCE_TELEMETRY Forces recording telemetry data when the game is run in an IDE. Has no effect in the vanilla game. 25w37a -
[Boolean] DONT_SEND_TELEMETRY_TO_BACKEND Disables sending any telemetry to Mojang servers when the game is run in an IDE. Has no effect in the vanilla game. 25w37a -

History

Java Edition
1.21.925w37aAdded debug flags.
pre1Added VERBOSE_COMMAND_ERRORS and DEV_COMMANDS debug properties.
BRAIN, CHUNKS and GENERATE_SQUARE_TERRAIN_WITHOUT_NOISE no longer crash the game.
DONT_SEND_TELEMETRY_TO_BACKEND now only disables sending telemetry when run in an IDE.
Upcoming Java Edition
1.21.1125w41aThe following flags have been removed and replaced with in-game debug renderers: WATER, HEIGHTMAP, COLLISION, SUPPORT_BLOCKS, LIGHT, SKY_LIGHT_SECTIONS, SOLID_FACE and CHUNKS.
25w42aAdded ACTIVE_TEXT_AREAS debug property.

Navigation