Examining Program Variables
Visual LISP provides you with an entire toolkit of programming and debugging tools.
One of the most valuable tools is a Watch, which lets you examine variables in more detail than appears in the Visual LISP
Console window. You can also watch local variables within functions as the function
executes.
To watch the value of a variable
- Click Debug
Add Watch from the Visual LISP menu. Visual LISP displays a dialog box titled “Add
Watch.â€Enter the name of the variable you wish to examine. For this example, specify gp_PathData, the variable you just set from the Console window. Visual LISP displays a Watch window:
Visual LISP displays the value of the variable on a single line within the Watch window—the
base window shown in the illustration. In this case, the value of the variable is
a long list, and you cannot see its entire value. You can resize the Watch window
by dragging its border, but there is a better alternative. - Double-click on the variable name in the Watch window. This opens an Inspect window:
The Inspect window indicates the data type of the variable you are inspecting (in
this case, a list), and the value of the variable. For lists, Inspect displays each
list item on its own line. - Double-click on the line with the association list key 11. Visual LISP opens another
Inspect window: - When you are done inspecting variables, close all the Inspect windows but keep the
Watch window open.
sual LISP provides you with an entire toolkit of programming and debugging tools. One of the most valuable tools is a Watch, which lets you examine variables …examining, testing, and modifying program … In the first run of the program, the $sigblock variable is not set.examining, testing, and modifying program … In the first run of the program, the $sigblock variable is not set.… … you can examine its state in the variables pane of the debugger: … Each object can be expanded, using a disclosure triangle, to show its …variables, program variables, and operators. This section discusses operators and constants. “Creating and Removing …examine and use the variable a whenever your program is executing within the function foo , but you can only use or examine the variable b while your …Examining and Setting Variables. C-h v var <RET>: Display the value and documentation of variable var ( describe-variable ). M-x set-variable <RET> var …… Each time a method is called, the program pushes a new stack frame on top … You use the frame variable ( f v ) command to get a list of all the …