title: See the values of variables change while a Java program is running?
body: <p>Consider a java program with many variables and some of them are counters for loops I want to see the values of these variables as they change with time , WITHOUT putting print statements everywhere in my code.</p>
  
  <p>Why ? I think it can help me to debug easily. </p>
  
  <pre><code>Example-
  int a = 7;  
  for(i=0; i&lt;3; i++)
  {
    a++;
  }
  </code></pre>
  
  <p>As this program runs I want to get live reports like this:</p>
  
  <pre><code>t is 0, a is 7, i is 0
  t is 3, a is 8, i is 1
  t is 12, a is 9, i is 2
  (t is time, time factor is NOT necessary though)
  </code></pre>