Is there a way to put a conditional breakpoint which won't be hit when the method the breakpoint is in is called from other specified method?
(I'm using IDEA 9.0.1)
Is there a way to put a conditional breakpoint which won't be hit when the method the breakpoint is in is called from other specified method?
(I'm using IDEA 9.0.1)
There is no such feature for the conditional breakpoints, however you can achieve similar behavior by using the breakpoint dependencies.
Here you can set a breakpoint the current one will depend on. Thus the dependent, slave breakpoint is conditionally disabled - it becomes enabled only if the master breakpoint is hit. Moreover, after the dependent breakpoint is hit, it becomes disabled again until the master is hit next time. Hence you can form cascades of dependent breakpoints to satisfy any requirements. This feature works with all other conditions, filters, etc.