Eclipse 调试不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28863902/
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
Eclipse debugging is not working
提问by CursedChico
Eclipse IDE for Java Developers
Version: Luna Service Release 2 (4.4.2)
Build id: 20150219-0600
I put some breakpoints in this first picture:
我在第一张图片中放置了一些断点:
After that, i clicked the bug symbol to start debug mode:
之后,我单击错误符号以启动调试模式:
But the application started as if it is in normal run mode. And as you can see in 2. picture, those buttons can not be clicked (next step, step into).
但应用程序启动时好像处于正常运行模式。正如你在 2. 图片中看到的,那些按钮是无法点击的(下一步,步入)。
I was using kepler, it was same so i downloaded luna but it is still same. I could use debug mode 5-6 months ago. I did not use eclipse since that time and did not change anything.
我正在使用开普勒,它是一样的,所以我下载了 luna 但它仍然是一样的。我可以在 5-6 个月前使用调试模式。从那时起我就没有使用 eclipse 并且没有改变任何东西。
回答by reto
All your breakpoints are disabled because you have "Skip all Breakpoints" enabled. You can recognize this by the strike-trough breakpoint icon:
所有断点都被禁用,因为您启用了“跳过所有断点”。您可以通过罢工谷断点图标来识别这一点:
Enable your breakpoints again by clicking the icon in the very top left of your first screenshot:
单击第一个屏幕截图左上角的图标,再次启用断点:
This will turn the "Skip all Breakpoints" setting off again and your program can be debugged as expected. More on this in the Eclipse documentation.
这将再次关闭“跳过所有断点”设置,您的程序可以按预期调试。Eclipse 文档中有更多关于这方面的信息。
回答by Matus Danoczi
Do you
你
- try Debug start?
- use Debug on the right program?
- 试试调试启动?
- 在正确的程序上使用调试?
It looks like the breakpoint was not catched...
断点好像没被抓到...