Runtime Watches and the Watches 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 you wish to watch in the New Run Time Watch window. Click OK.

4

Begin a debug session (Debug > Debug Project). Watch variable values change in the Watches window.

5

To see the watched variable change in a Memory window, Pause (halt) and open a Memory window containing the watched variable. Continue the program and watch the values change in this window.

RunTimeWatch.gif
Figure 1: Runtime Watch
© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.