
R0E417250MCU00 User
’s Manual
R20UT3587EJ0302 Rev.3.02
Page 50 of 232
Sep.01. 21
3.12 Showing Local Variables
By using the Local window, you can view the local variables included in a function. As an example, let’s check the local
variables of the tutorial function. Four local variables are declared in this function: ‘a,’ ‘j,’ ‘i’ and ‘p_sam.’
Choose Symbol
−
Locals from the View menu or click on the Locals toolbar button [
] to display the Locals window.
The Locals window shows the values of local variables in the function indicated by the current value of the program counter
(PC).
If no variables exist in the function, no information is displayed in the Locals window.
Figure 3.18 Locals window
Click on the “+” mark shown to the left of array a in the Locals window to display the elements comprising array a.
Confirm that the random data are being sorted into ascending order by inspecting the elements of array a before and after
execution of the sort function.
3.13 Single-Stepping through a Program
The High-performance Embedded Workshop provides various step commands that will prove useful in debugging programs.
Table 3.0.1 Step Options
Command
Description
Step In
Executes a program one statement at a time (including statements within functions).
Step Over
Executes a program one statement at a time by ‘stepping over’ function calls, if there are any.
Step Out
After exiting a function, stops at the next statement of a program that called the function.
Step...
Single-step a program a specified number of times at a specified speed.