# ListVars

Displays the script's variables: their names and current contents.

    ListVars

### Remarks

This command is equivalent to selecting the "View->Variables" menu item in the main window. It can help you debug a script.

Each line in the list consists of:
1) The name of the variable.
2) The length of the variable's contents and the variable's capacity. For example: [50 of 63]
3) The first 60 characters of the variable's contents.

If this command is used inside a function, the function's local variables will be listed first (above the script's global variables).

Known limitation: If a function (or the list of global variables itself) contains more than 10,000 variables, this command might not show them in exact alphabetical order; that is, some might be missing from the display.

### Related

KeyHistory, ListHotkeys, ListLines

### Example

    ListVars