I use system properties for this.
Example
Suppose we have this class:
public class Main { public static void main(String[] args) { for (int i = 0; i < 1000; i++) { methodA(); } methodB(); methodA(); } private static void methodA() { System.out.println("A"); } private static void methodB() { System.out.println("B"); } }
We want to add a breakpoint inside methodA() , but stop at it after calling methodB() , but without adding additional variables for the code or using counters.
Breakpoint for setting a property
First add a breakpoint inside methodB() and make this condition. In its state, we will set the system property to true . We do not want to stop inside methodB() , so the condition will return false :
System.setProperty("enable.methodA.breakpoint", "true"); return false;
See GIF below:

Breakpoint that validates a property
Now add a breakpoint to methodA() , also with the condition. In this case, we first get the value of the set set property:
String p = System.getProperty("enable.methodA.breakpoint", "false");
Then we analyze it as logical and return:
return Boolean.valueOf(p).booleanValue();
(Note that the default value is "false" , so the breakpoint will not pause if the property is not set.)
Check out this step in the GIF below:

Launch
Now, if we run this class in debug mode, the bookmark in methodA() will only be suspended after calling methodB() :

Disabling a breakpoint
If methodA() is called many, many times after methodB() , and we want to test it only once, we can eventually delete it. For example, suppose our main() method looks like this:
public static void main(String[] args) { for (int i = 0; i < 1000; i++) { methodA(); } methodB(); methodA(); for (int i = 0; i < 1000; i++) { methodA(); } }
We can use this condition where we return the false property so as not to stop at this breakpoint:
String p = System.getProperty("enable.methodA.breakpoint", "false"); System.setProperty("enable.methodA.breakpoint", "false"); return Boolean.valueOf(p).booleanValue();
This, of course, is just a simple example - the sky is the limit with this trick.