Community
Participate
Working Groups
I'd like to be able to set a conditional breakpoint which would only fire after a previous (linked) breakpoint had been hit. Ideally, the first breakpoint would not actually stop execution, but only set a condition which would trigger the second breakpoint when reached. For example: Breakpoint 1 in a failing test case Breakpoint 2 inside a tight loop in computational code. This code is called repeatedly during the test, so we don't want to break on the first hit, and we'd prefer not to have to count the number of hits (so as to condition the breakpoint on hit-count). We want this breakpoint to fire if-and-only-if execution has passed Breakpoint 1. See also the same request from another user (and my hackish attempt at a workaround in an answer) at: http://stackoverflow.com/questions/4685241/in-eclipse-is-there-a-way-to-disable-a-breakpoint-until-another-breakpoint-is-h
If you know why the test is failing can you not simply use that condition in breakpoint 2? I am inclined to mark this as won't fix, but perhaps there is some use case I am just not considering?