Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

ent_script_dump

🟩 Executable on Server

ent_script_dump

Dumps the names and values of this entity's script scope to the console Arguments: {entity_name} / {class_name} / no argument picks what player is looking at

Warning:

This is a cheat command and can only be used when sv_cheats is set to 1.