为什么 Eclipse 有时会忽略我的断点?

发布于 2024-10-07 05:39:24 字数 206 浏览 0 评论 0原文

我是 Android 开发人员,我使用 Eclipse。

有时,当我调试应用程序时,Eclipse 不会在断点处停止。 Eclipse 在断点上显示一个“v”符号。我认为这个符号意味着 Eclipse 已经毫无问题地通过了断点,但我希望 Eclipse 在到达断点时停止。

当然,我已经按下了调试按钮(带有绿色错误的图标)。

我怎样才能避免这种行为?

I'm android developer and I use Eclipse.

Sometimes, when I am debugging my apps, Eclipse doesn't stop on my breakpoints. Eclipse shows a "v" symbol on the breakpoint. I think this symbol means that Eclipse has passed the breakpoint without problems, but I would like Eclipse to stop when it reaches the breakpoint.

Of course, I have pressed the debug button (the icon with the green bug on it.)

How can I avoid this behavior?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

风吹雪碎 2024-10-14 05:39:24

最有可能的是您的源文件和类文件不同步。如果发生这种情况,请清理并重建您的项目。这应该会使问题消失。

Most likley your source and class files run out of sync. If this happens clean and rebuild your project. This should make the issue disappear.

才能让你更想念 2024-10-14 05:39:24

解决了,这是因为我在清单中的另一个进程中有该活动......哇

solved, it's because i have that activity in another process in the manifest... wow

江挽川 2024-10-14 05:39:24

旧帖子 - 但用间歇性跟踪/断点拉了我几个小时的头发,所以这可能对某人有帮助。

对我来说,解决方案就是使用 --clean 标志来启动 Eclipse,所以 ./eclipse --clean

Old post - but pulled my hair out for a few hours with intermittent trace/breakpoints, so this may help someone.

The solution for me was simply to use the --clean flag to start Eclipse, so ./eclipse --clean

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文