Microchip Technology DV164039 Data Sheet
Programming and Debugging the Board
2010 Microchip Technology Inc.
DS51911A-page 29
3.7.3
Using Watch Windows
To use a Watch window:
1.
The Watch window is made visible on the desktop by selecting View > Watch. It
contains four selectable watch views (via tabs) in which to view variables (SFRs,
symbols and absolute address).
contains four selectable watch views (via tabs) in which to view variables (SFRs,
symbols and absolute address).
2.
Select an SFR or symbol from the list and click the related Add button to add it
to the Watch window, or click in the “Address” column and enter an absolute
address.
to the Watch window, or click in the “Address” column and enter an absolute
address.
A typical Watch window, populated with the SFRs and Symbols, is shown in
Figure 3-12. For more on using the Watch windows, see the Help files for MPLAB IDE.
Figure 3-12. For more on using the Watch windows, see the Help files for MPLAB IDE.
FIGURE 3-12:
WATCH WINDOW EXAMPLE
Note:
When the optimization in the build is enabled, some of the variables may
be optimized out and may not appear on the Watch window. In case this
happens, you can either turn off the optimization or temporarily declare the
variable as a volatile.
be optimized out and may not appear on the Watch window. In case this
happens, you can either turn off the optimization or temporarily declare the
variable as a volatile.