English
Language : 

R0E417250MCU00 Datasheet, PDF (47/228 Pages) Renesas Technology Corp – E100 Emulator MCU Unit for H8SX/1700 Series
R0E417250MCU00 User’s Manual
3. Tutorial
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.
REJ10J1831-0200 Rev.2.00 Jun.1, 2009
Page 47 of 228