简体   繁体   English

如何在Eclipse中移动条件断点?

[英]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. 在示例中,Eclipse将为internalList中的每个项目中断,而如果它在numberFound定义中中断,则它应该仅中断一次。 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 . 自2002年以来,很多人都想要它(包括我)因为它是一个功能请求 Try asking again for it. 再试一次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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