5.3.3 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:
- 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: Project Properties>Loading, check “Load symbols when programming or building for production (slows process)”.
- Select Window>Debugging>Watches to open the Watches window.
- 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.
- Begin a debug session . Watch variable values change in the Watches window.
- 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.