
Hitachi Embedded Workshop User Manual
218
[Value]
Value and assigned location.
The assigned location is enclosed by { }.
[Type]
Type of the variable
Adding a Watch Item
Use the [Add Watch] dialog box in the [Watch] window to add Watch items to the [Watch] window.
! To use Add Watch from a [Watch] window:
Open the [Watch] window.
Choose [Add Watch] from the pop-up menu.
The [Add Watch] dialog box opens:
Figure 4.45 Add Watch Dialog Box
Enter the name of the variable that you wish to watch and click [OK]. The variable is added to the [Watch]
window. A variable can be dragged from the [Source] window and dropped into the [Watch] window.
Note: If the variable that you have added is a local variable that is not currently in scope, the HEW will
add it to the [Watch] window but its value will be blank, or set to a question mark, '?'.
Expanding a Watch Item
If a watch item is a pointer, array, or structure, then you will see a plus sign (+) expansion indicator to left of its
name, this means that you can expand the watch item. To expand a watch item, double click on it. The item
expands to show the elements (in the case of structures and arrays) or data value (in the case of pointers)
indented by one tab stop, and the plus sign changes to a minus sign (-). If the elements of the watch item also
contain pointers, structures, or arrays then they will also have expansion indicators next to them.
Figure 4.46 Expanding a Watch Item