How to use conditional breakpoint in Eclipse?
I want to know how to place a conditional breakpoint in Eclipse. I have a code like:
public static void doForAllTabs(String[] tablist){
for(int i = 0; i<tablist.length;i++){
--> doIt(tablist[i]);
}
}
Now I want to put a breakpoint on the line with the arrow but want it to trigger only if:
tablist[i].equalsIgnoreCase("LEADDELEGATES");
Solution 1:
Put your breakpoint. Right-click the breakpoint image on the margin and choose Breakpoint Properties:
Configure condition as you see fit:
Solution 2:
Make a normal breakpoint on the doIt(tablist[i]);
line
Right-click -> Properties
Check 'Conditional'
Enter tablist[i].equalsIgnoreCase("LEADDELEGATES")