Conditional debugging in Intellij with OR/AND conditions
Suppose I have a below code
And now I want to know what happens inside compare api if i = 3 and j = 5
Add a break point on the line required like below
Right click on the break point (i.e. the red circle), below pop will occur
Now add the condition here
i == 3 && j == 5 (Similarly can be done for OR condition i == 3 || j == 5)and Click on done
And now debug. This icon with question mark indicates its an conditional break point
Comments
Post a Comment