Eclipse调试 - 没有断点停止 [英] Eclipse Debugging - Stopping without a breakpoint

查看:387
本文介绍了Eclipse调试 - 没有断点停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse 3.4.2调试一些Java代码。我已经禁用了所有的断点,但调试器仍然停留在特定的一行。这一点是在空指针异常被触发之前的几行。奇怪的是,当我运行相同的代码/运行配置,但不在调试器中时,空指针异常不会发生。



另外,如果我从该方法的开始导致空指针异常,使用完全相同的输入,没有问题。它只发生在我删除所有断点,但是Eclipse决定停止在那里,而不管。



为什么会发生这种情况?

解决方案

我有同样的问题,最后找到以下配置选项:
Windows - >首选项 - > Java - > Debug - >暂停执行未捕获的异常
我没有选中它,问题消失了。
但是,可能知道未捕获的异常是很好的。我只是禁用它,因为问题是在Spring框架,而不是在我的代码,因此我可以纠正任何...
希望它有帮助:)


I am debugging some Java code with Eclipse 3.4.2. I have disabled all the breakpoints, yet the debugger still stops at a specific line. This point is several lines before a null pointer exception is triggered. Curiously, when I run the same code/run configuration, but not in the debugger, the null pointer exception does not occur.

Also, if I step through this code from the beginning of the method causing the null pointer exception, using the exact same input, there is no problem. It only occurs when I remove all breakpoints but Eclipse decides to stop there regardless.

Why could this be happening?

解决方案

I had the same problem and finally found the following configuration option: Windows -> Preferences -> Java -> Debug -> Suspend execution on uncaught exceptions I unchecked it, and the problem disappeared. However, may be it's good to know about uncaught exceptions. I just disabled it because the problem was in Spring framework, not in my code, and hence I could correct nothing... Hope it helps :)

这篇关于Eclipse调试 - 没有断点停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆