断点被划掉了,如何使它们有效?
我遇到了一个棘手的问题:
我无法设置有效的断点。测试中没有,我的 Java 类中也没有。我搜索了 Stackoverflow 和 google,但找不到有同样问题的人。
我正在使用 STS(x86) 和 Maven。
编辑:这可能看起来很混乱,但我自己解决了。 我得走了->跳过所有断点(已经设置了,我想知道它是如何设置的,因为我没有这样做)
i got a tricky one:
I can't set valid breakpoints. Not in Tests, neither in my Java Classes. I searched Stackoverflow and google, but I couldn't find anybody with the same problem.
I'm using STS(x86) and Maven.
Edit: It may seem confusing but I solved it by myself.
I have to go Run-> Skip all Breakpoints (it was set, and I wonder how it was set, because I didn't do it)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您自己发现了一个菜单条目,可以切换所有断点的跳过。在“断点”视图中也有一个图标,并且可能还定义了一个热键,所有这些都可能是您意外触发的。
看看运行->跳过所有断点。
There is a menu entry you have discovered for yourself that toggles the skipping of all breakpoints. There is also an icon for this in the "Breakpoints" View, and there may be a hot-key defined as well, all of which you may have triggered by accident.
Take a look at the Run -> Skip All Breakpoints.
Eclipse 中“跳过所有断点”的屏幕截图。
当你点击“跳过所有断点”(已选中)时,一切都会变得正常
Screenshot of the 'skip all breakpoints' in eclipse.
When you click on 'skip all breakpoints'(which is selected), everything will become normal
Eclipse 中放置断点的快捷键(Ctrl + Shift + B)与跳过所有断点(Ctrl + Alt + B)非常相似。因此,如果要取消“跳过所有断点”的条件,可以通过再次按“Ctrl + Alt + B”来实现。
The shortcut key for placing a breakpoint in Eclipse (Ctrl + Shift + B) is quite similar to the one that skips all the breakpoint (Ctrl + Alt + B). Hence, if a "skip all breakpoints" condition is to be cancelled, it can be achieved by pressing "Ctrl + Alt + B" again.
您应该已经处于调试视角。如果不是就去调试视角。您应该看到禁用所有断点按钮。 -
单击它,它应该允许所有断点。
You should already be in debug perspective. If not just go to debug perspective. You should see disable all breakpoints button. -
Click on it and it should allow all breakpoints.
1)运行=>跳过所有断点。
2)运行=>删除所有断点。
然后您的调试器将不会显示十字符号,并将继续调试您的应用程序。
1) Run => Skip all breakpoints.
2) Run => remove all break points.
and then your debugger wont show cross sign and will keep debugging your app.
我按照下面的步骤来修复此问题,
I followed these steps below to fix this
在我的情况下, ctrl+alt+B 不起作用,也没有在运行->跳过所有断点中获得任何选项。我们是否有其他选择来解决此断点问题
In mine case neither ctrl+alt+B is working nor I am getting any option in run->skip all breakpoint. Do we have any alternative options for fix this breakpoint issue