Bug 390590 - [breakpoints] Allow linking / chaining breakpoints
Summary: [breakpoints] Allow linking / chaining breakpoints
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-27 14:04 EDT by Aaron Dunlop CLA
Modified: 2016-02-29 04:30 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Dunlop CLA 2012-09-27 14:04:08 EDT
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
Comment 1 Michael Rennie CLA 2013-12-06 16:12:53 EST
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?