# Globals List

The Globals List contains a list of the global variables of the target application.

This list has one list-specific operation: Trace Variable creates a new toplevel window that will contain set statements reflecting writes to the variable. (The trace will contain the last 50 set's by default, the number can be set through the `*Variable_trace.savelines` option.) Trace Variable handles both scalars and arrays.

For an interesting example of how this works, try the following:

- Select an application (for example, tkinspect itself.)
- Choose Show Global... from the Globals menu, and enter `tkPriv`.
- Choose Trace Variable from the Globals menu.

You will now be tracking the `tkPriv` array.

The default list of patterns for the list filter is:

        ^tkPriv.*
        ^auto_.*
        ^tk_.*

And is read from the option `*Globals_list.patterns`.

Last modified: Sun Jun 4 22:23:01 1995