CS2 script_add_watch_pattern Command

CS2 Command CS2 logo
script_add_watch_pattern <pattern>

Adds a watch to the game debug overlay for monitoring specific scripts or commands during debugging. This is particularly useful for developers or modders aiming to track how certain scripts or commands behave in real-time.

Argument Information

The syntax for this command is as follows:
Name Description
pattern

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

Extra Information

Find additional information relating to this command below.
sv_cheats Required
Yes
Client or Server Command
Server
Default Value
cmd
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
IPS

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

script_add_watch_pattern <pattern>
0/1 arguments filled
pattern

script_add_watch_pattern Examples

script_add_watch_pattern my_custom_script

Adds a watch for 'my_custom_script' in the game debug overlay.