Avatar of brgdotnet
brgdotnet
Flag for United States of America

asked on 

Adding a watch to a variable in Visual Studio.

In Visual Studio I have a class variable (It is named : MyCoords[2].PathInitial)
In my large application I need to find out when the value for MyCoords[2].PathInitial  changes.
When it does change I would like for my application to alert me somehow on the line where the change occurs, or to temporarily halt execution at the line where it has changed. Is that possible? I added a "Watch" on the variable, however it seems kind of useless as I am never informed as to which line of code the value for MyCoords[2].PathInitial  changes.
Microsoft Visual Studio

Avatar of undefined
Last Comment
David H.H.Lee

8/22/2022 - Mon