title: Pause execution without breakpoint
body: <p>For instance, I have a <code>for()</code> without any contents on my code, and I need debug it to check if it is ok. In javascript I could call <code>debugger;</code> inside it to pause execution in this point. </p>
  
  <p>In Java I currently needs to create some code internally then enable breakpoint on it on IDE on this line. Same occur with <code>if()</code> or similar statements.</p>
  
  
  
  <pre class="lang-java prettyprint-override"><code>for (Element element: elements) {
      // Need stop here.
  }
  </code></pre>
  
  <p>Currently I do:</p>
  
  <pre class="lang-java prettyprint-override"><code>for (Element element: elements) {
      Element elementB = element; // Breakpoint
  }
  </code></pre>