Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I move a conditional breakpoint in Eclipse?

I've set a conditional breakpoint on the wrong line. I would like to move it up one line. Is that even possible? I know that I can always copy paste the condition into a new breakpoint at the correct line, but just drag &drop would be more convenient.

Example:

private void loopOverInternalList(Object findThis) {
    int numberFound = 0; //I want conditional breakpoint here.
    for(Object listItem : internalList) { // Breakpoint [findThis.getSomeProperty() == true]
        // do something...
    }
}

In the example Eclipse will break for each item in the internalList, while if it breaks on the numberFound definition it should break only once. Which is more convenient in my current scenario.

like image 264
Timo Avatar asked Feb 13 '13 09:02

Timo


1 Answers

It is not possible nowadays. Many people wants it (including me) since 2002 as it is a feature request since then. Try asking again for it.

like image 154
logoff Avatar answered Sep 30 '22 06:09

logoff