To debug a Java Program in Eclipse, it allow to setup “conditional break points”. Conditional break points are based on conditions. Your debugging thread will stop when the specified condition is matched at the break point line.
To setup a new conditional break point follow these steps.
• Double click on the required line in your code on which you are interested to setup break point.
• Right click -> Properties -> Insert condition.