Skip to content

ingame_debug_commands

DevGeniusCode edited this page Jul 14, 2025 · 2 revisions

In-Game Debug Commands

⚠️ Important Notice: These debug commands are only available in debug builds of Command & Conquer: Generals and Zero Hour. They will not work in release builds.


Commands Available in Both Generals and Zero Hour
├─ Game State & Cheats (10)
Hotkey Command Name Description Accessible In Image
Ctrl + W DEMO_WIN Instantly win the current game or mission GAME Image
Ctrl + = DEMO_ADDCASH Adds 10000 cash to the player's current resources GAME Image
Alt + F DEMO_INSTANT_BUILD Toggles instant building for all units and structures GAME
Ctrl + V DEMO_GIVE_VETERANCY Grants the selected unit(s) a level of veterancy GAME Image
Shift + Ctrl + V DEMO_TAKE_VETERANCY Removes a level of veterancy from the selected unit(s) GAME Image
Shift + Ctrl + P DEMO_GIVE_SCIENCEPURCHASEPOINTS Gives the player 1 science purchase point GAME Image
Shift + Alt + Ctrl + K DEMO_GIVE_ALL_SCIENCES Instantly unlocks all sciences for the player GAME Image
Ctrl + K DEMO_GIVE_RANKLEVEL Grants the player a rank level GAME Image
Shift + Ctrl + K DEMO_TAKE_RANKLEVEL Subtracts the player's current rank level by 1 GAME Image
Ctrl + S DEMO_TOGGLE_SPECIAL_POWER_DELAYS Toggles whether special powers, super weapons and abilities have a delay before they can be used again GAME Image
├─ Visual & Rendering (14)
Hotkey Command Name Description Accessible In Image
F11 DEMO_TOGGLE_BEHIND_BUILDINGS Toggles the outline around units when they are obscured by buildings GAME Image
Ctrl + F10 DEMO_TOGGLE_BW_VIEW Toggles a black and white wireframe mode GAME SHELL Image
Ctrl + F11 DEMO_TOGGLE_RED_VIEW Toggles a (useless?) red view mode GAME SHELL Image
Ctrl + F12 DEMO_TOGGLE_GREEN_VIEW Toggles a (useless?) green view mode GAME SHELL Image
Ctrl + F9 DEMO_TOGGLE_MOTION_BLUR_ZOOM Plays a (useless?) zoom animation with motion blur effects GAME SHELL Image
Ctrl + </kbd> DEMO_TOGGLE_RENDER Toggles rendering of new frames (essentially freezes the game in place) GAME
/ DEMO_TOGGLE_NO_DRAW Toggles rendering of new frames (essentially freezes the game in place). Appears to be redundant with DEMO_TOGGLE_RENDER. Note: BROKEN, the off toggle does not work GAME
Shift + J DEMO_TOGGLE_SHADOW_VOLUMES Toggles the rendering of shadow volumes GAME Image
] DEMO_TOGGLE_WATERPLANE Toggles the rendering of the water plane (does not seem to work) GAME
[ DEMO_TOGGLE_TRACKMARKS Toggles the rendering of track marks on the ground GAME
Alt + W DEMO_TOGGLE_FEATHER_WATER Visually cycles between different water depths GAME Image
Ctrl + E DEMO_SHOW_EXTENTS Toggles the visibility of the bounding box around units GAME Image
Alt + H DEMO_SHOW_HEALTH Toggles the visibility of health bars above units and structures GAME Image
Shift + Ctrl + D DEMO_TIME_OF_DAY Cycles through different times of day GAME Image
├─ Audio (5)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + S DEMO_TOGGLE_SOUND Toggles game audio on and off GAME
Shift + Ctrl + M DEMO_TOGGLE_MUSIC Toggles game music on and off GAME Image
Shift + M DEMO_MUSIC_NEXT_TRACK Skips to the next music track in the playlist GAME Image
Ctrl + M DEMO_MUSIC_PREV_TRACK Skips to the previous music track in the playlist GAME Image
Shift + A DEMO_TOGGLE_AUDIODEBUG Toggles audio debugging information on and off GAME SHELL Image
├─ Camera & View (7)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + L DEMO_LOCK_CAMERA_TO_SELECTION Locks the camera to the currently selected unit or structure GAME
Shift + Ctrl + C DEMO_TOGGLE_CAMERA_DEBUG Needs further information GAME Image
Shift + Alt + Ctrl + C DEMO_TOGGLE_ZOOM_LOCK Toggles the camera's zoom limitations, allowing for unrestricted zooming in and out when disabled GAME Image
, DEMO_BEGIN_ADJUST_PITCH Begins adjusting the camera's pitch GAME Image
, (Release) DEMO_END_ADJUST_PITCH Ends adjusting the camera's pitch GAME Image
. DEMO_BEGIN_ADJUST_FOV Begins adjusting the camera's field of view (FOV) GAME Image
. (Release) DEMO_END_ADJUST_FOV Ends adjusting the camera's field of view (FOV) GAME Image
├─ AI & Team (3)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + Space DEMO_SWITCH_TEAMS Cycles through the players in the game, sequentially passing control to each one GAME Image
Ctrl + T DEMO_SWITCH_TEAMS_CHINA_USA Cycles through USA and China players in the game on the same team as the player, sequentially passing control to each one GAME
Ctrl + A DEMO_TOGGLE_AI_DEBUG Toggles visual AI debugging information on and off GAME Image
├─ Debug Information & Stats (9)
Hotkey Command Name Description Accessible In Image
Ctrl + Q DEMO_TOGGLE_DEBUG_STATS Toggles the visibility of debug information overlays GAME SHELL Image
Ctrl + L DEMO_TOGGLE_METRICS Needs further information GAME
Shift + Ctrl + Q DEMO_TOGGLE_GRAPHICALFRAMERATEBAR Toggles the world's most useless graphical frame rate bar on and off GAME SHELL Image
Shift + Alt + V DEMO_TOGGLE_VISIONDEBUG Toggles the visibility of the vision debug overlay for units and structures GAME Image
Shift + Ctrl + B DEMO_TOGGLE_PROJECTILEDEBUG Toggles the visibility of visual projectile debug information GAME Image
Ctrl + P DEMO_TOGGLE_PARTICLEDEBUG Toggles the visibility of visual particle debug information GAME Image
Ctrl + O DEMO_TOGGLE_CASHMAPDEBUG Toggles the visibility of visual cash map debug information GAME Image
Shift + Ctrl + O DEMO_TOGGLE_THREATDEBUG Toggles the visibility of visual threat debug information GAME
Ctrl + D DEMO_DEBUG_SELECTION Toggles the visibility of the selected unit(s) or structure's debug information GAME Image
├─ Map & Fog of War (3)
Hotkey Command Name Description Accessible In Image
Shift + Alt + F DEMO_TOGGLE_FOGOFWAR Toggles the rendering of certain things in the fog of war (Useless?) GAME Image
Shift + Ctrl + R DEMO_ENSHROUD Shrouds all areas of the map that are not currently visible to the player or their allies GAME Image
Ctrl + R DEMO_DESHROUD Fully reveals the entire map, removing all fog of war and shroud GAME Image
├─ Combat & Units (5)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + Numpad / DEMO_KILL_ALL_ENEMIES Instantly kills all enemies on the map GAME Image
Shift + Ctrl + X DEMO_KILL_SELECTION Instantly kills the currently selected unit or structure. Only works on units and structures belonging to the player GAME Image
Ctrl + X DEMO_TOGGLE_HURT_ME_MODE Toggles the "Hurt Me" mode, causing 10% damage every time a unit or structure is selected GAME Image
Alt + G DEMO_TOGGLE_HAND_OF_GOD_MODE Toggles the "Hand of God" mode, allowing the player to instantly destroy any unit or structure by selecting it GAME Image
Shift + B DEMO_BATTLE_CRY Plays a battle cry sound effect (Useless?) GAME
├─ Performance & Level of Detail (5)
Hotkey Command Name Description Accessible In Image
= DEMO_LOD_DECREASE Decreases the level of detail (LOD) by one level for all objects in the game GAME Image
- DEMO_LOD_INCREASE Increases the level of detail (LOD) by one level for all objects in the game GAME Image
Alt + - DEMO_CYCLE_LOD_LEVEL Cycles through the available LOD levels for all objects in the game GAME Image
Ctrl + J DEMO_INCR_ANIM_SKATE_SPEED Increases the animation skate speed for all units and structures in the game (Needs further information) GAME Image
Shift + Ctrl + J DEMO_DECR_ANIM_SKATE_SPEED Decreases the animation skate speed for all units and structures in the game (Needs further information) GAME Image
├─ System & Technical (8)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + A DEMO_DUMP_ASSETS (Needs further information) GAME
Shift + F11 DEMO_TOGGLE_AVI (Needs further information) GAME SHELL
Shift + Alt + Ctrl + N DEMO_TOGGLE_NETWORK (Needs further information) GAME
Alt + T DEMO_TOGGLE_MESSAGE_TEXT Toggles the visibility of in-game messages GAME Image
Ctrl + G DEMO_VTUNE_ON (Needs further information) GAME
Shift + Ctrl + G DEMO_VTUNE_OFF (Needs further information) GAME
Alt + O DEBUG_DUMP_PLAYER_OBJECTS (Needs further information) GAME
Shift + Alt + O DEBUG_DUMP_ALL_PLAYER_OBJECTS (Needs further information) GAME
├─ Scripts & Movies (10)
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + F1 DEMO_RUNSCRIPT1 (Needs further information) GAME
Shift + Ctrl + F2 DEMO_RUNSCRIPT2 (Needs further information) GAME
Shift + Ctrl + F3 DEMO_RUNSCRIPT3 (Needs further information) GAME
Shift + Ctrl + F4 DEMO_RUNSCRIPT4 (Needs further information) GAME
Shift + Ctrl + F5 DEMO_RUNSCRIPT5 (Needs further information) GAME
Shift + Ctrl + F6 DEMO_RUNSCRIPT6 (Needs further information) GAME
Shift + Ctrl + F7 DEMO_RUNSCRIPT7 (Needs further information) GAME
Shift + Ctrl + F8 DEMO_RUNSCRIPT8 (Needs further information) GAME
Shift + Ctrl + F9 DEMO_RUNSCRIPT9 (Needs further information) GAME
Shift + Ctrl + Tab DEMO_NEXT_OBJECTIVE_MOVIE (Needs further information) GAME

Commands Available Only in Generals
Hotkey Command Name Description Accessible In Image
Shift + Ctrl + Backspace DEMO_INSTANT_QUIT (Needs further information) GAME SHELL

Commands Available Only in Zero Hour
├─ Performance Analysis (4)
Hotkey Command Name Description Accessible In Image
Shift + Alt + Ctrl + Q DEBUG_OBJECT_ID_PERFORMANCE (Needs further information) GAME Image
Shift + Alt + Ctrl + A DEBUG_DRAWABLE_ID_PERFORMANCE (Needs further information) GAME Image
Shift + Alt + Ctrl + W DEBUG_SLEEPY_UPDATE_PERFORMANCE (Needs further information) GAME Image
Alt + Q DEMO_PERFORM_STATISTICAL_DUMP (Needs further information) GAME SHELL Image
├─ Game Features (1)
Hotkey Command Name Description Accessible In Image
Shift + Alt + Ctrl + S DEMO_TOGGLE_SUPPLY_CENTER_PLACEMENT (Needs further information) GAME
├─ Audio (1)
Hotkey Command Name Description Accessible In Image
Shift + Alt + A DEMO_SHOW_AUDIO_LOCATIONS Displays visual overlays regarding audio (Needs further information) GAME SHELL Image

How to Use These Commands

Key Combination Format:

All hotkeys in this document are displayed using keyboard key styling with <kbd> tags:

  • Single Key: Press the key (e.g., F11, =, [)
  • Modifier + Key: Hold the modifier key(s), then press the main key (e.g., Ctrl + W)
  • Multiple Modifiers: Hold all modifiers simultaneously, then press the main key (e.g., Shift + Alt + Ctrl + S)
  • Release Commands: Hold the key down, then release it (marked with (Release))

Accessible In:

  • GAME: Commands work during gameplay (in a match/mission)
  • GAME SHELL: Commands work in menus and during gameplay

Examples:

  • Ctrl + W = Hold Ctrl, press W, release both
  • Shift + Alt + F = Hold Shift and Alt together, press F, release all
  • , (Release) = Press and hold comma, then release it
Clone this wiki locally