title: Can I set a breakpoint when variable is getting a specific value in .NET?
body: <p>I am using Visual Studio 2010, and I know this feature is available in C++.</p>
  
  <p>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 <code>if(var == value)</code>, but is there any elegant way to do it?</p>
  
  <p>Another question, can I set a breakpoint when a variable is changed in general?</p>