
118 PSoC Designer IDE Guide, Document # 001-42655 Rev *B
Debugger
7.5.4 Watch Variables
Watch Variables can be set by right clicking a variable in a source file and selecting Add Watch. You
can also select Global Variables.
Right-click Add, Delete, or Properties in the Watch/Global Name window to add, delete, or modify
values. Note that if you change a variable type (or other settings in the window) and close the
project, the next time you access that project the variable types and settings are the same.
Figure 7-8. Watch Variables Window
By default, all variable values are shown in hexadecimal. Right-click inside the Watch Variables win-
dow to display the toggle to show variable values in decimal instead. When the value of a watch vari-
able changes (during program execution), the changed values are presented in red. Values that did
not change during the execution are presented in black.
If the selected watch variable is not within the current context of the debugger, the variable is shown
as disabled. Once you have a program with Local Variables and the Debugger has halted in a func-
tion where they are contained, you see the value of the variable.
You cannot change Variable names. You can cut, copy, paste, and delete values (not names) when
the debugger is halted in a context where the variable exists. Double-click to highlight then right-click
to choose an option. The variable will be shown in red if it is stored in Flash. You cannot alter the
value of variables stored in Flash in the Watch Variable window. For better viewing, you can adjust
the column width of the Local Name window by dragging the heading row column dividers.
The default action for using the Delete option is to set the value to zero (including Floating point
types).
The Local Variables are not “alive” when the program has halted at the initial function scope, for
example:
void cgentest_009(void)
{-------------------------- HALT, NO Locals
uInt32 u32var0;
uInt32 u32var1
-.-.-.-.-.-.-.-.-.-. etc -.-.-.-.-.-.-.-.-.-.
As discussed in “Menu Options” on page 111, you can use the Single Step icon to step through the
project .lst file.
Comentarios a estos manuales