title: How to watch a variable for changes
body: <p>I want to know if there's any way so I could watch for variable value change when the program is running. Of course not using debugger I wanna do it <strong>Programmatically</strong>. For example:</p>
  
  <pre><code>class A
  {
     public static int valueToBeWatched;
  }
  </code></pre>
  
  <p>So at runtime if in any method of any class in my project modifies this value <code>MyValueChangeListner</code> event should get called.</p>