I am using Visual Studio 2010, and I know this feature is available in C++.
I need to debug some code, that changes a variable to several values. I want to debug the code in a specific case, when the variable getting a specific value. I know I can add if(var == value)
, but is there any elegant way to do it?
Another question, can I set a breakpoint when a variable is changed in general?