Tracking what code modifies a variable in visual studios?

So I have a pretty big program with a lot of stuff going on and need to find out what code is modifying the value of a certain variable. Is there anyway I could do this in visual studios?
Last edited on
Use the debugger! Put a breakpoint at where the variable is declared and maybe other places where its known to be used and then step through your program line by line. Use the watch/auto windows also.
I think you may be looking for the option under:
Debug → New Breakpoint → New Data Breakpoint...
Just what I was looking for! Thanks.
Topic archived. No new replies allowed.