简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM