Tracking what code modifies a variable in visual studios?

Jul 23, 2015 at 7:42pm
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 Jul 23, 2015 at 7:43pm
Jul 23, 2015 at 9:02pm
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.
Jul 23, 2015 at 10:39pm
I think you may be looking for the option under:
Debug → New Breakpoint → New Data Breakpoint...
Jul 24, 2015 at 8:15pm
Just what I was looking for! Thanks.
Topic archived. No new replies allowed.