Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use conditional break-points in IntelliJ?

I want to know how to add a conditional break-point in IntelliJ IDEa. I do not want to know very advanced options about breakpoints, but just to know an easy way of getting to conditional breakpoints.

like image 380
MozenRath Avatar asked Oct 25 '25 23:10

MozenRath


1 Answers

To add a conditional break-point, add a normal break-point and then right click on it to see the following options:

On right-clicking the break-point

For more info, Visit: http://jetbrains.com/help/idea/configuring-breakpoints.html

  • The enables checkbox tells you whether it will be triggered or not.
  • The Suspend radio button lets you select whether to pause just the current thread or all the threads in the JVM.
  • The Condition lets you speciafy a boolean expression which when true, will trigger the breakpoint.

On clicking the More button, you get to the below screen

Advanced Options Screen

like image 152
MozenRath Avatar answered Oct 28 '25 13:10

MozenRath