开发者

IDEA: Conditional breakpoint not to be hit in specified call context

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 me开发者_开发百科thod?

(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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜