سؤال

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.

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top