User guide
Tutorials
2. Highlight the expression count == 0xff in the code.
3. Right-click and then click
Add Watch Expression.... The Add Watch
Expression dialog box appears with the Expression to watch box automatically
filled in with the selected text: count==0xff.
4. Change Expression to watch to count==5.
5. Click OK. The expression appears in the Expressions view in
the upper-right window.
Now, every time execution suspends at a breakpoint, the Expressions view evaluates the
expression count==5. If execution suspends when count equals 5, then count==5
evaluates true, signified by the expression count==5=1.
You can assign IDE preferences to show expressions values in a different format, such as
hexadecimal, as described in the variables
section of this topic. However, you must restart
the debug session to force the format to change. Refer to Related Topics
for more
information about expressions.
Note: FS/2 must be disabled in the Debug dialog box in order for native watchpoints
to work.
To view and edit registers:
Click the Registers tab in the upper-right pane of the Debug perspective to display the
Registers view. You can also point to Show View on the Window menu, and then click
Registers. This view displays the contents of registers.
To edit the contents of a particular register, right-click it in the Registers view and click
Change Value....
Note: Altera recommends that you do not manually edit register values, because it
could cause your program to behave unpredictably.
You can assign IDE preferences to show register values in a different format, such as
hexadecimal, as described in the variables
section of this topic. However, you must restart
the debug session to force the format to change. Refer to Related Topics
for more
information about registers.
To view and edit memory:
23