How to set a variable value and start running from that in Netbeans? <p>I run a program step by step with monitoring variable's value by watch in <code>Netbeans</code>. How can I start the running of the program from a special value for a variable.</p> <p>For example i have this simple code just for testing: For saving time i want to see the changes of the program after the value of i reaches 25(i=25).</p> <p>Using Run Debug>Run to cursor or f4 to go to this line in program.then the program starts from i=0 , but i don,t need to see the changes before i=25.</p> <pre><code>public class DebugCondition { private static void TestMethod() { for(int i=0; i&lt;= 29 ; i++) 15. System.out.print("i"); } public static void main(String[] args) { 18. TestMethod(); } } </code></pre> <p>What I do: 1. click on line 15.</p> <ol start="2"> <li><p>define conditional breakpoint for that line by i>=25.</p></li> <li><p>click on line 18 , then press F4.</p></li> <li><p>Press F7 to go to method, then press F8 to debug body of method.</p></li> <li><p>Result in watch: at first I starts from 0 . <img src="https://i.stack.imgur.com/PI7Sl.png" alt=""></p></li> </ol> <p>What is wrong?</p>