IntelliJ Idea (debugging) conditional breakpoint dependent on other breakpoints

后端 未结 2 912
渐次进展
渐次进展 2021-02-07 02:39

I want to set a debug breakpoint in IntelliJ Idea that is only active, if another previous breakpoint was activated. For example i have a breakpoint B1 on line

2条回答
  •  感情败类
    2021-02-07 02:48

    You can do that in the View Breakpoints... view:

    enter image description here

    In your case you will first have to set a conditional breakpoint on B1 so that when it is hit then and only then B2 will be triggered.

    enter image description here

提交回复
热议问题