Datasheet

Specific Debug Functions: 32-Bit Devices
2013 Microchip Technology Inc. DS52085A-page 69
7.2.3 Runtime Watches and the Watch Window
A runtime watch provides updating of a variable in the following windows during
program execution instead of on halt:
Watches – Window > Debugging menu
Memory – Window > PIC Memory Views menu
To set up runtime watches:
1. Build the project (In the Projects window, right click on the project name and
select “Build”). The project must be built to see the available symbols.
2. Select Window>Debugging>Watches
to open the Watches window.
3. Right click in the window and select “New Runtime Watch”. Select the symbol or
SFR wish to watch in the New Run Time Watch window. Click OK.
4. Right click on the project and select “Properties” to open the Project Properties
dialog. Then click on the “Real ICE” category and select the “Clock” option cate-
gory. Enter instruction speed information.
5. Begin a debug session (Debug>Debug Project
). Watch variable values change
in the Watch window.
6. Pause (halt) and open another window (e.g., SFR) containing the watched
variable. Continue the program again and watch the values change in this
window.