运行到Eclipse中的下一个断点(java)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19694447/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run to the next breakpoint in Eclipse (java)
提问by TT_
How to run to the next breakpoint in Eclipse? I stopped at a breakpoint, after that I need to just run through some long piece of code until the next breakpoint is hit. I searched SO and Eclipse but did not find the answer. Just having nightmare with the Eclipse debugger (still can't forget my beloved Sun Workshop which I can't praise high enough)...
Eclipse 如何运行到下一个断点?我停在一个断点处,之后我需要运行一些很长的代码,直到遇到下一个断点。我搜索了 SO 和 Eclipse,但没有找到答案。刚刚在 Eclipse 调试器上做噩梦(仍然不能忘记我心爱的 Sun Workshop,我无法称赞它)...
采纳答案by Ben Green
The button that looks like the play button on a tv remote.
看起来像电视遥控器上的播放按钮的按钮。
回答by nanofarad
The green button, or F8will continue a suspended execution due to a breakpoint. You can optionally switch to the debug perspective to see the default set of views that are useful for debugging. The green button in a circle(right above the "continue" label in the image) will notsuffice.
绿色按钮,或F8将继续因断点而暂停的执行。您可以选择切换到调试透视图以查看对调试有用的默认视图集。在一个圆圈(右上图中的“继续”标签)的绿色按钮将不足够。
|====| ====8
| | | 88
| | | 88
| | | 88
| | | 88
| | | 88
|====| ====8
回答by ChiefTwoPencils
When you're debugging you should be on the Debugging screen as it has all the windows interesting for debugging. If you're there you should see some controls like a play/resume, pause/suspend and stop/terminate. You can proceed to the next break point by pressing the resume(play) button or press F8.
当您进行调试时,您应该在调试屏幕上,因为它包含所有对调试感兴趣的窗口。如果您在那里,您应该会看到一些控件,例如播放/恢复、暂停/暂停和停止/终止。您可以通过按恢复(播放)按钮或按 F8 继续到下一个断点。
It is nottrue that you just hit play. If you're on the Java window pressing play, or as put "the green button" runs the program again without debugging it. If you like to use the buttons, ensure you're on the correct window.
你只是点击播放是不正确的。如果您在 Java 窗口上按播放键,或者按“绿色按钮”放置,则无需调试即可再次运行程序。如果您喜欢使用按钮,请确保您在正确的窗口上。
回答by 75inchpianist
Press f8
按 f8
-or -
-或者 -
hit the button in debug toolbar that looks like this
点击调试工具栏中的按钮,看起来像这样
-or-
-或者-
-go to Run -> Resume
- 转到运行 -> 恢复