Skip to content

In-Game Debug Commands

This source-audited reference contains all 110 bound in-game debug commands for Command & Conquer: Generals and Zero Hour, including generated and release-cheat mappings.

Source-only debug commands without an active default binding are intentionally omitted.

Most commands require RTS_DEBUG. Both games shows shared commands, while Generals and Zero Hour show title-exclusive commands.

Browse all 110 bound debug commands

Showing all commands

Command Key binding Availability Effect Category Context MP-wide Build
CHEAT_ADD_CASH Ctrl + = Zero Hour
In-game
Deposits 10,000 credits into the local player’s money account; blocked in multiplayer. Game state & cheats Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_DESHROUD Ctrl + R Zero Hour
In-game
Permanently reveals the map for the local player. Map & fog of war Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_GIVE_ALL_SCIENCES Shift + Alt + Ctrl + K Zero Hour
In-game
Grants every grantable science to the local player; blocked in multiplayer. Game state & cheats Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_GIVE_SCIENCEPURCHASEPOINTS Shift + Ctrl + P Zero Hour
In-game
Adds one science-purchase point to the local player. Game state & cheats Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_INSTANT_BUILD Alt + F Zero Hour
In-game
Toggles instant production for the local player; blocked in multiplayer. Game state & cheats Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_KILL_SELECTION Shift + Ctrl + X Zero Hour
In-game
Appends the standard debug kill-selection message for the selected group. Combat & units Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT1 Shift + Ctrl + F1 Zero Hour
In-game
Runs the script named KEY_F1. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT2 Shift + Ctrl + F2 Zero Hour
In-game
Runs the script named KEY_F2. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT3 Shift + Ctrl + F3 Zero Hour
In-game
Runs the script named KEY_F3. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT4 Shift + Ctrl + F4 Zero Hour
In-game
Runs the script named KEY_F4. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT5 Shift + Ctrl + F5 Zero Hour
In-game
Runs the script named KEY_F5. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT6 Shift + Ctrl + F6 Zero Hour
In-game
Runs the script named KEY_F6. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT7 Shift + Ctrl + F7 Zero Hour
In-game
Runs the script named KEY_F7. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT8 Shift + Ctrl + F8 Zero Hour
In-game
Runs the script named KEY_F8. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_RUNSCRIPT9 Shift + Ctrl + F9 Zero Hour
In-game
Runs the script named KEY_F9. Scripts & movies Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_SHOW_HEALTH Alt + H Zero Hour
In-game
Toggles health displays above objects. Visual & rendering Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_SWITCH_TEAMS Shift + Ctrl + Space Zero Hour
In-game
Cycles local control through non-neutral players in the match. AI & team Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_TOGGLE_HAND_OF_GOD_MODE Alt + G Zero Hour
In-game
Toggles hand-of-god mode; selecting an object sends the debug kill-object message. Combat & units Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_TOGGLE_MESSAGE_TEXT Alt + T Zero Hour
In-game
Toggles on-screen UI messages. Visual & rendering Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
CHEAT_TOGGLE_SPECIAL_POWER_DELAYS Ctrl + S Zero Hour
In-game
Toggles recharge delays for special powers, superweapons, and abilities. Game state & cheats Game No _ALLOW_DEBUG_CHEATS_IN_RELEASE
DEBUG_DRAWABLE_ID_PERFORMANCE Shift + Alt + Ctrl + A Zero Hour
In-game
Times batches of 10,000, 100,000, and 1,000,000 DrawableID lookups. Performance & LOD Game No RTS_DEBUG
DEBUG_DUMP_ALL_PLAYER_OBJECTS Shift + Alt + O Both games
In-game
Logs playable-side object counts and full object lists to the script debug log. Debug information & stats Game No RTS_DEBUG
DEBUG_DUMP_PLAYER_OBJECTS Alt + O Both games
In-game
Logs playable-side object counts and object lists when a player has five or fewer objects. Debug information & stats Game No RTS_DEBUG
DEBUG_OBJECT_ID_PERFORMANCE Shift + Alt + Ctrl + Q Zero Hour
In-game
Times batches of 10,000, 100,000, and 1,000,000 ObjectID lookups. Performance & LOD Game No RTS_DEBUG
DEBUG_SLEEPY_UPDATE_PERFORMANCE Shift + Alt + Ctrl + W Zero Hour
In-game
Reports the number of sleepy update modules. Performance & LOD Game No RTS_DEBUG
DEMO_ADDCASH Ctrl + = Both games
In-game
Deposits 10,000 credits into the local player’s money account; blocked in multiplayer. Game state & cheats Game No RTS_DEBUG
DEMO_BATTLE_CRY Shift + B Both games
In-game
Plays the configured battle-cry sound. Combat & units Game No RTS_DEBUG
DEMO_BEGIN_ADJUST_DEFAULTPITCH Ctrl + , Both games
In-game
Enters default-camera-pitch adjustment mode and records the cursor anchor. Camera & view Game No RTS_DEBUG
DEMO_BEGIN_ADJUST_FOV . Both games
In-game
Enters camera field-of-view adjustment mode and records the cursor anchor. Camera & view Game No RTS_DEBUG
DEMO_BEGIN_ADJUST_PITCH , Both games
In-game
Enters camera-pitch adjustment mode and records the cursor anchor. Camera & view Game No RTS_DEBUG
DEMO_CYCLE_LOD_LEVEL Alt + - Both games
In-game
Cycles dynamic game-detail levels from very high down to low, then wraps. Performance & LOD Game No RTS_DEBUG
DEMO_DEBUG_SELECTION Ctrl + D Both games
In-game
Toggles debug-selected-item mode. Debug information & stats Game No RTS_DEBUG
DEMO_DECR_ANIM_SKATE_SPEED Shift + Ctrl + J Both games
In-game
Decreases the animation skate-distance override by 0.25. Performance & LOD Game No RTS_DEBUG
DEMO_DESHROUD Ctrl + R Both games
In-game
Permanently reveals the map for the local player. Map & fog of war Game No RTS_DEBUG
DEMO_DUMP_ASSETS Shift + Ctrl + A Both games
In-game
Dumps the display’s currently used model assets to UsedMapAssets.txt. System & technical Game No RTS_DEBUG
DEMO_END_ADJUST_DEFAULTPITCH Ctrl + , (Release) Both games
In-game
Leaves default-camera-pitch adjustment mode. Camera & view Game No RTS_DEBUG
DEMO_END_ADJUST_FOV . (Release) Both games
In-game
Leaves camera field-of-view adjustment mode. Camera & view Game No RTS_DEBUG
DEMO_END_ADJUST_PITCH , (Release) Both games
In-game
Leaves camera-pitch adjustment mode. Camera & view Game No RTS_DEBUG
DEMO_ENSHROUD Shift + Ctrl + R Both games
In-game
Undoes the permanent reveal, then shrouds the map for the local player. Map & fog of war Game No RTS_DEBUG
DEMO_FREE_BUILD Alt + B Both games
In-game
Toggles zero production cost for every human player. Game state & cheats Game Yes RTS_DEBUG
DEMO_GIVE_ALL_SCIENCES Shift + Alt + Ctrl + K Both games
In-game
Grants every grantable science to every human player. Game state & cheats Game Yes RTS_DEBUG
DEMO_GIVE_RANKLEVEL Ctrl + K Both games
In-game
Adds one rank level to the local player. Game state & cheats Game No RTS_DEBUG
DEMO_GIVE_SCIENCEPURCHASEPOINTS Shift + Ctrl + P Both games
In-game
Adds one science-purchase point to the local player. Game state & cheats Game No RTS_DEBUG
DEMO_GIVE_VETERANCY Ctrl + V Both games
In-game
Raises every selected trainable object by one veterancy level; blocked in multiplayer. Game state & cheats Game No RTS_DEBUG
DEMO_INCR_ANIM_SKATE_SPEED Ctrl + J Both games
In-game
Increases the animation skate-distance override by 0.25. Performance & LOD Game No RTS_DEBUG
DEMO_INSTANT_BUILD Alt + F Both games
In-game
Toggles instant production for every human player. In multiplayer it changes state only when no human player currently has anything in production. Game state & cheats Game Yes RTS_DEBUG
DEMO_INSTANT_QUIT Generals: Alt + F4 (or close the window) / Shift + Ctrl + Backspace
Zero Hour: Alt + F4 (or close the window)
Both games
In-game + shell
Starts the quit flow. In a match, repeating the close command while the quit menu is open triggers self-destruct and the sequenced quit; outside a match it closes the application. Game state & cheats Game + shell No Any build
DEMO_KILL_ALL_ENEMIES Shift + Ctrl + Numpad / Both games
In-game
Kills every object whose controlling player is an enemy of the local player. Combat & units Game No RTS_DEBUG
DEMO_KILL_SELECTION Shift + Ctrl + X Both games
In-game
Appends the standard debug kill-selection message for the selected group. Combat & units Game No RTS_DEBUG
DEMO_LOCK_CAMERA_TO_SELECTION Shift + Ctrl + L Both games
In-game
Locks the tactical camera to the current selection. Camera & view Game No RTS_DEBUG
DEMO_LOD_DECREASE - Both games
In-game
Decreases the texture-reduction value by one, improving texture detail, down to zero. Performance & LOD Game No RTS_DEBUG
DEMO_LOD_INCREASE = Both games
In-game
Increases the texture-reduction value by one, reducing texture detail, up to four. Performance & LOD Game No RTS_DEBUG
DEMO_MUSIC_NEXT_TRACK Shift + M Both games
In-game
Advances to the next music track. Audio Game No RTS_DEBUG
DEMO_MUSIC_PREV_TRACK Ctrl + M Both games
In-game
Returns to the previous music track. Audio Game No RTS_DEBUG
DEMO_NEXT_OBJECTIVE_MOVIE Shift + Ctrl + Tab Both games
In-game
Advances through DemoObjective01 to DemoObjective06 and plays the selected movie. Scripts & movies Game No RTS_DEBUG
DEMO_PERFORM_STATISTICAL_DUMP Alt + Q Zero Hour
In-game + shell
Requests a performance-statistics dump for the current frame to StatisticsDump.txt. Performance & LOD Game + shell No RTS_DEBUG
DEMO_REMOVE_PREREQ Alt + P Both games
In-game
Toggles prerequisite checks for every human player. Game state & cheats Game Yes RTS_DEBUG
DEMO_RUNSCRIPT1 Shift + Ctrl + F1 Both games
In-game
Runs the script named KEY_F1. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT2 Shift + Ctrl + F2 Both games
In-game
Runs the script named KEY_F2. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT3 Shift + Ctrl + F3 Both games
In-game
Runs the script named KEY_F3. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT4 Shift + Ctrl + F4 Both games
In-game
Runs the script named KEY_F4. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT5 Shift + Ctrl + F5 Both games
In-game
Runs the script named KEY_F5. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT6 Shift + Ctrl + F6 Both games
In-game
Runs the script named KEY_F6. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT7 Shift + Ctrl + F7 Both games
In-game
Runs the script named KEY_F7. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT8 Shift + Ctrl + F8 Both games
In-game
Runs the script named KEY_F8. Scripts & movies Game No RTS_DEBUG
DEMO_RUNSCRIPT9 Shift + Ctrl + F9 Both games
In-game
Runs the script named KEY_F9. Scripts & movies Game No RTS_DEBUG
DEMO_SHOW_AUDIO_LOCATIONS Shift + Alt + A Zero Hour
In-game + shell
Toggles visual markers for audio locations and radii. Debug information & stats Game + shell No RTS_DEBUG
DEMO_SHOW_EXTENTS Ctrl + E Both games
In-game
Toggles rendering of object collision extents. Visual & rendering Game No RTS_DEBUG
DEMO_SHOW_HEALTH Alt + H Both games
In-game
Toggles health displays above objects. Visual & rendering Game No RTS_DEBUG
DEMO_SWITCH_TEAMS Shift + Ctrl + Space Both games
In-game
Cycles local control through non-neutral players in the match. AI & team Game No RTS_DEBUG
DEMO_SWITCH_TEAMS_CHINA_USA Ctrl + T Both games
In-game
Switches local control between the first China and America players found by side. AI & team Game No RTS_DEBUG
DEMO_TAKE_RANKLEVEL Shift + Ctrl + K Both games
In-game
Removes one rank level from the local player. Game state & cheats Game No RTS_DEBUG
DEMO_TAKE_VETERANCY Shift + Ctrl + V Both games
In-game
Lowers every selected trainable object by one veterancy level; blocked in multiplayer. Game state & cheats Game No RTS_DEBUG
DEMO_TIME_OF_DAY Shift + Ctrl + D Both games
In-game
Cycles the map through its configured time-of-day lighting states. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_AI_DEBUG Ctrl + A Both games
In-game
Cycles through the available AI-debug modes, then back to off. AI & team Game No RTS_DEBUG
DEMO_TOGGLE_AUDIODEBUG Shift + A Both games
In-game + shell
Toggles the audio debug-display callback. Audio Game + shell No RTS_DEBUG
DEMO_TOGGLE_AVI Shift + F11 Both games
In-game + shell
Toggles movie capture through the display system. Visual & rendering Game + shell No RTS_DEBUG
DEMO_TOGGLE_BEHIND_BUILDINGS F11 Both games
In-game
Toggles the markers/outlines for objects obscured by buildings. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_BW_VIEW Ctrl + F10 Both games
In-game + shell
Cycles the wireframe/crossfade debug-view states; the crossfade state also freezes time. Visual & rendering Game + shell No RTS_DEBUG
DEMO_TOGGLE_CAMERA_DEBUG Shift + Ctrl + C Both games
In-game
Toggles the global camera-debug mode. Camera & view Game No RTS_DEBUG
DEMO_TOGGLE_CASHMAPDEBUG Ctrl + O Both games
In-game
Toggles the cash-value map overlay and disables the threat-map overlay when enabled. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_DEBUG_STATS Ctrl + Q Both games
In-game + shell
Toggles the general stats debug-display callback. Debug information & stats Game + shell No RTS_DEBUG
DEMO_TOGGLE_FEATHER_WATER Alt + W Both games
In-game
Decrements the feather-water debug value and wraps it from 0 through 5. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_FOGOFWAR Shift + Alt + F Both games
In-game
Toggles fog-of-war rendering; it does not change permanent shroud state. Map & fog of war Game No RTS_DEBUG
DEMO_TOGGLE_GRAPHICALFRAMERATEBAR Shift + Ctrl + Q Both games
In-game + shell
Toggles the graphical frame-rate bar. Debug information & stats Game + shell No RTS_DEBUG
DEMO_TOGGLE_GREEN_VIEW Ctrl + F12 Both games
In-game + shell
Toggles the green view-filter mode. Visual & rendering Game + shell No RTS_DEBUG
DEMO_TOGGLE_HAND_OF_GOD_MODE Alt + G Both games
In-game
Toggles hand-of-god mode; selecting an object sends the debug kill-object message. Combat & units Game No RTS_DEBUG
DEMO_TOGGLE_HURT_ME_MODE Ctrl + X Both games
In-game
Toggles hurt-me mode; selecting an object applies 10% of its maximum health as unresistable damage. Combat & units Game No RTS_DEBUG
DEMO_TOGGLE_MESSAGE_TEXT Alt + T Both games
In-game
Toggles on-screen UI messages. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_METRICS Ctrl + L Both games
In-game
Toggles the performance-metrics display callback. Debug information & stats Game No RTS_DEBUG + PERF_TIMERS
DEMO_TOGGLE_MOTION_BLUR_ZOOM Ctrl + F9 Both games
In-game + shell
Toggles the motion-blur zoom view effect. Visual & rendering Game + shell No RTS_DEBUG
DEMO_TOGGLE_MUSIC Shift + Ctrl + M Both games
In-game
Stops or resumes music playback. Audio Game No RTS_DEBUG
DEMO_TOGGLE_NETWORK Shift + Alt + Ctrl + N Both games
In-game
Calls toggleNetworkOn() when a network object exists. System & technical Game No RTS_DEBUG
DEMO_TOGGLE_NO_DRAW / Both games
In-game
Toggles the global no-draw mask between all bits set and zero. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_PARTICLEDEBUG Ctrl + P Both games
In-game
Toggles the particle-system debug-display callback. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_PROJECTILEDEBUG Shift + Ctrl + B Both games
In-game
Toggles projectile-path debugging. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_RED_VIEW Ctrl + F11 Both games
In-game + shell
Toggles the red view-filter mode. Visual & rendering Game + shell No RTS_DEBUG
DEMO_TOGGLE_RENDER Ctrl + \ Both games
In-game
Toggles the global disable-render flag, freezing or resuming newly rendered frames. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_SHADOW_VOLUMES Shift + J Both games
In-game
Toggles both shadow-volume and shadow-decal settings. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_SOUND Shift + Ctrl + S Both games
In-game
Toggles game audio. Audio Game No RTS_DEBUG
DEMO_TOGGLE_SPECIAL_POWER_DELAYS Ctrl + S Both games
In-game
Toggles recharge delays for special powers, superweapons, and abilities. Game state & cheats Game No RTS_DEBUG
DEMO_TOGGLE_SUPPLY_CENTER_PLACEMENT Shift + Alt + Ctrl + S Zero Hour
In-game
Toggles supply-center placement diagnostic logging. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_THREATDEBUG Shift + Ctrl + O Both games
In-game
Toggles the threat-map overlay and disables the cash-value overlay when enabled. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_TRACKMARKS [ Both games
In-game
Toggles track-mark rendering. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_VISIONDEBUG Shift + Alt + V Both games
In-game
Toggles the visibility debug overlay. Debug information & stats Game No RTS_DEBUG
DEMO_TOGGLE_WATERPLANE ] Both games
In-game
Toggles water-plane rendering. Visual & rendering Game No RTS_DEBUG
DEMO_TOGGLE_ZOOM_LOCK Shift + Alt + Ctrl + C Both games
In-game
Toggles the tactical view’s zoom limits. Camera & view Game No RTS_DEBUG
DEMO_VTUNE_OFF Shift + Ctrl + G Both games
In-game
Disables VTune gathering in the script engine. System & technical Game No RTS_DEBUG
DEMO_VTUNE_ON Ctrl + G Both games
In-game
Enables VTune gathering in the script engine. System & technical Game No RTS_DEBUG
DEMO_WIN Ctrl + W Both games
In-game
Immediately invokes the script engine’s debug-victory path. Game state & cheats Game No RTS_DEBUG

Bindings use keyboard-key styling to show exactly what to press:

  • Single key: Press the displayed key, such as F11, =, or [.
  • Modifier + key: Hold the modifier, then press the final key, such as Ctrl + W.
  • Multiple modifiers: Hold every modifier simultaneously, then press the final key, such as Shift + Alt + Ctrl + S.
  • Release command: Press and hold the combination, then release its final key. These bindings are marked (Release).
  • Alternative bindings: A slash separates different ways to invoke the same command.
  • Availability: The first line identifies the active game mapping. Both games means the binding is active in Generals and Zero Hour; Generals and Zero Hour identify title-exclusive mappings. The second line shows where the command is enabled: In-game during gameplay, or In-game + shell during gameplay and in the game’s menus. The mapping does not describe whether an implementation exists in shared source code.
  • Build: Any build requires no debug gate. The other values name the preprocessor definitions that enable the mapping.
  • MP-wide: Yes marks four debug actions designed to affect every human player. These actions are not network-synchronized, so every client must apply the same change to avoid mismatched state. No covers commands blocked in multiplayer as well as commands that still act only on the local client; consult the effect description for the command-specific behavior.
  • Ctrl + W: Hold Ctrl, press W, then release both keys.
  • Shift + Alt + F: Hold Shift and Alt, press F, then release all three keys.
  • , (Release): Press and hold the comma key, then release it.