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:
Project Properties>Loading, check “Load symbols when
programming or building for production (slows process)”.
- 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 . 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.