4.13 Watching Symbol Values Change
Watch the values of global symbols or SFRs change in the Watches window. Determining if these values are as expected during program execution will help you to debug your code.
For more on this window, see 14.30 Watches Window.
Create a New Watch
Click the Finish Debugger Session icon
![](GUID-18FACEAD-8BBF-465A-BA83-56BADBDB8098-high.png)
To create a new watch:
- Select New Watch dialog will open. . The
- Enter a Watch expression, in this
case
PORTC.IN
, and then click OK. The Watches window will now appear on the desktop with the symbol.
![](GUID-23C8F299-5242-4683-B186-8A7BFF0B1C0B-high.png)
![](GUID-C3B1DC50-4B0C-4B21-B345-68CA31EFDA71-high.png)
View Value Changes in Watches Window
Click the Debug Project icon
![](GUID-500F5689-8F8C-488E-BEAC-FE076FB6844A-high.png)
![](GUID-B38FE1F9-A577-4BAB-976D-49BFA4191C10-high.png)
PORTC.IN
after port initialization.
![](GUID-314CA5EA-6771-4354-B33F-E38F139E2237-high.png)
Click the Continue icon
![](GUID-392F4663-A24F-4A90-9780-592003EBDBBB-high.png)
![](GUID-16BDAFC6-4E9D-4DD2-A39D-30B9A5AE47DD-high.png)
Click the Finish Debugger Session icon
![](GUID-18FACEAD-8BBF-465A-BA83-56BADBDB8098-high.png)