Watching a Variable
The Variable window lists all of the local variables in the current user-defined function.
You can type the name of a global variable into the Watch window to see its current value.
Restrictions
• | Structured variables cannot be selected for the Watch window. To watch the value of a structure member, return to the script editor and add statements that assign the value of that member to a simple data type at locations in your script where you want to know its value. Then recompile your script and start the debugger. Finally, put that simple variable in the Watch window. |
• | A List variable can be selected for the Watch window, but the debugger cannot display its elements. Use the method described above for structure members to watch elements of a list. |
• | The local user variable controls are active only when the execution point is within the begin and end statements of a user-defined function. When the execution point moves beyond the end of the function, the value shown in the Watch window for that variable is changed to the message <variable not found>. |