script_add_watch_pattern Command

Explore usage, syntax, and examples for the script_add_watch_pattern CS2 developer console command.

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.

<pattern>

The name or pattern of the script or command to watch in the debug overlay.

sv_cheats Required

Yes

Client or Server Command

Server

script_add_watch_pattern Generator

Command

script_add_watch_pattern

<pattern>
0/1 Arguments Selected

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.

script_add_watch_pattern Examples

Command

script_add_watch_pattern

my_custom_script

Watches the script 'my_custom_script' in the debug overlay.