IntelliJ Idea (debugging) conditional breakpoint dependent on other breakpoints
You can do that in the View Breakpoints...
view:
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.