Enable the developer console:
Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".
Press ` or ~ on your keyboard.
Enter a command and hit ENTER on your keyboard to run it!

Commands List
Command | Description | More | Syntax |
---|---|---|---|
cl_scoreboard_survivors_always_on | cl_scoreboard_survivors_always_on
|
||
cl_script_add_debug_filter | Adds a filter to the game debug overlay, allowing for focused debugging information. |
Examples, Generator & More | cl_script_add_debug_filter
<Filter name>
|
cl_script_add_watch | Adds a watch to the game debug overlay for monitoring and debugging purposes. This command is intended for use during game development or for debugging scripts. |
Examples, Generator & More | cl_script_add_watch
<Command>
|
cl_script_add_watch_pattern | This command adds a watch for a specific pattern to the game debug overlay, allowing for real-time debugging and monitoring of specific events or values. |
Examples, Generator & More | cl_script_add_watch_pattern
<Pattern>
|
cl_script_attach_debugger | Connects the VScript VM (Virtual Machine) to the script debugger, enabling debugging of scripts. |
Examples, Generator & More | cl_script_attach_debugger
|
cl_script_clear_watches | Clears all watches from the game debug overlay, which is used for debugging by removing any watch expressions that have been set. |
Examples, Generator & More | cl_script_clear_watches
|
cl_script_debug | Toggles the in-game script debug features, allowing developers to debug their scripts within the game. |
Examples, Generator & More | cl_script_debug
<0 / 1>
|
cl_script_dump_all | This command dumps the state of the virtual machine (VM) to the console, useful for debugging scripts in Counter-Strike 2. |
Examples, Generator & More | cl_script_dump_all
|
cl_script_find | This command is used to find a key within the Virtual Machine (VM), specifically useful for debugging scripts and configurations. |
Examples, Generator & More | cl_script_find
<Key>
|
cl_script_reload | This command reloads the scripts for the game. It's typically used for debugging or development purposes when changes are made to game scripts. |
Examples, Generator & More | cl_script_reload
|
cl_script_reload_code | This command executes a VScript file, updating existing functions with the newly defined functions in the script being run. It's used primarily for developing and testing scripts. |
Examples, Generator & More | cl_script_reload_code
<File Name>
|
cl_script_reload_entity_code | This command reloads and executes all of the VScripts associated with a specific entity, updating existing functions with those defined in the newly run scripts. It is used for debugging or updating scripted entities without restarting the game. |
Examples, Generator & More | cl_script_reload_entity_code
|
cl_script_remove_debug_filter | This command removes a specific filter from the game debug overlay, possibly undoing a previous action that added a filter. It helps in customizing what kind of data or information should be visible in the debug output. |
Examples, Generator & More | cl_script_remove_debug_filter
<Filter>
|
cl_script_remove_watch | Removes a previously added watch from the game debug overlay, ceasing the tracking of the specified debug information. |
Examples, Generator & More | cl_script_remove_watch
|
cl_script_remove_watch_pattern | Removes a previously set watch pattern from the game's debug overlay, stopping the monitoring of specified commands or variables. |
Examples, Generator & More | cl_script_remove_watch_pattern
<Pattern>
|
cl_script_resurrect_unreachable | This command attempts to clear out reference cycles caught by the garbage collector, aiding in identifying potential memory leaks. |
Examples, Generator & More | cl_script_resurrect_unreachable
|
cl_script_trace_disable | Disables a specific trace output identified by the file or function name. This command is used primarily for debugging purposes. |
Examples, Generator & More | cl_script_trace_disable
<File or Function Name>
|
cl_script_trace_disable_all | This command disables all trace outputs, which are diagnostic messages useful for debugging purposes. |
Examples, Generator & More | cl_script_trace_disable_all
|
cl_script_trace_disable_key | This command disables a specific trace output identified by its table or instance. |
Examples, Generator & More | cl_script_trace_disable_key
<Table or Instance>
|
cl_script_trace_enable | Enables tracing output for scripts by specifying either file name or function name. Useful for debugging scripts. |
Examples, Generator & More | cl_script_trace_enable
<File or Function Name>
|