5.18.1 View Watches Window and Set Watches
To open the Watches window, either:
- Select to open the window.
- If the window is already open, click the Watches tab in the Output window.
You can add a symbol directly to the Watches window by doing one of the following:
- Double click in the name column and type in a global symbol, SFR, or absolute address (0x300).
- Right click on a global symbol or SFR in the Editor window and select New Watch.
- Select the global symbol or SFR in the Editor window and drag-and-drop it into the Watches window.
You can add a symbol or SFR to the Watches window by doing one of the following:
- Right click in the Watches window and select New Watch or select . Click the selection buttons to see either Global Symbols or SFRs. Click on a name from the list and then click OK.
- Select the symbol or SFR name in the Editor window and then select New Watch from the right click menu. The name will be populated in the window. Click OK.
You can add a global symbol or SFR as a runtime watch but first you will need to set up the clock:
- Right click on the project name and select Properties.
- Click on the debug tool name (e.g., PICkit 4), and select the Clock option category.
- Set the runtime instruction speed.
Then to add the runtime watch, follow the instructions above for adding a symbol or SFR except select New Runtime Watch instead of New Watch.
Note: For all devices except PIC32 MCUs, symbols used in a runtime
watch must be sized to match the device memory. That is, you need 8-bit symbols when
using an 8-bit device.
