www.DataSheet4U.com
7.11 Watching Local Variables
The localised variables within a function can be viewed using the Local Variables Window. For example,
in order to examine the local variables in the function sort.
•
Open the Local window by choosing Local... from the View menu.
Note: The Local Window will be empty if there is no local variable declared or local variables have not
yet been entered. In another words, user target program execution should halt within a function with
local variables to show any variables within Locals Window. In this tutorial, once when the execution
halts within the function sort(), the local variables within function sort() will be shown in Locals
Window:
•
Click on the + symbol in front of the variable worklist in the Locals window to display the individual
elements of the array worklist.
Figure 7-29
Figure 7-30
Displaying Individual Elements in an Array
Locals Window
65