title: How can I modify a variable value while debugging in IntelliJ, so that respective watches are automatically updated?
body: <p>I have the following piece of code:</p>
  
  <pre><code>Matcher matchDays = m_daysRegex.matcher(e.getKey());
  if (matchDays.matches()){
  ...
  }
  </code></pre>
  
  <p>Where <code>e.getKey()</code> is "Mon-Fri".</p>
  
  <p>Now, I have already executed the first line and stand on the if expression. Using the watch window I evaluate the <code>matchDays.matches()</code> expression and then add some watches on the various methods of <code>matchDays</code>. Then using the same watch window I evaluate the <code>matchDays = m_daysRegex.matcher("Mon,Fri")</code> and <code>matchDays.matches()</code> expressions to see what happens. Unfortunately, the watch window does not refresh itself and it does not have an explicit button to do so:
  <img src="https://i.stack.imgur.com/jngxo.png" alt="enter image description here"></p>
  
  <p>On the image above, notice how <code>matchDays.group(0)</code> displays "Mon,Fri", but <code>matchDays.group(1)</code> displays "Mon-Fri". This is because I manually refreshed the former, but all the rest still show the old values. I have to manually refresh them all, which is annoying.</p>
  
  <p>Am I doing something wrong? Is there the right way to do it, so the watch expressions are refreshed automatically? Or is there a way to refresh the whole watch window?</p>
  
  <p>Thanks.</p>