CS2 Console Commands

Below is CSDB's searchable list of all CS2 console commands. Each command in our database has in-depth insights on each command, with help and argument details. Click (Command Details) to view each specific command in more detail.

script_add_watch

CS2 Only

Command

script_add_watch

<Variable name>

Adds a watch to the game debug overlay so you can monitor variables or game states in real time.

Command Details

script_add_watch_pattern

CS2 Only

Command

script_add_watch_pattern

<pattern>

Adds a watch to the debug overlay to track specific scripts or commands in real-time. This helps developers and modders monitor script behavior during debugging on the server.

Command Details

script_attach_debugger

CS2 Only

Command

script_attach_debugger

Connect the VScript Virtual Machine to the script debugger to enable debugging of VScript scripts during development or testing.

Command Details

script_clear_watches

CS2 Only

Command

script_clear_watches

Removes all debugging watches from the in-game overlay.

Command Details

script_find

CS2 Only

Command

script_find

<Key name>

Search for a specific key within the server's scripting environment. Use this command to help debug and examine script values on the server side.

Command Details

script_reload

CS2 Only

Command

script_reload

Reload all scripts currently active in the game. Useful for developers or debugging to apply script changes without restarting.

Command Details

script_remove_debug_filter

CS2 Only

Command

script_remove_debug_filter

<Filter name>

Removes a filter from the game debug overlay used for development and troubleshooting.

Command Details

script_remove_watch

CS2 Only

Command

script_remove_watch

<Command>

Stops watching a specific variable in the game's debug overlay, helping you debug scripts more effectively.

Command Details

script_remove_watch_pattern

CS2 Only

Command

script_remove_watch_pattern

<Pattern>

Removes a specific watch from the debug overlay, stopping it from tracking that game variable or behavior.

Command Details

script_resurrect_unreachable

CS2 Only

Command

script_resurrect_unreachable

Runs the garbage collector on the server to detect and manage unreachable reference cycles, helping with debugging and optimization. This cheat-protected command is intended for development and testing environments.

Command Details