调试java时,Eclipse会跳过断点 [英] Eclipse skipping over breakpoints when debugging java

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

问题描述

我一直在使用Eclipse,我一直使用调试器,但最近我已经知道它可以在调试时跳过断点!我甚至已经有了,所以我在println上设置了一个断点,我会看到文本出来,但没有打破断点。有时候,我会在代码的一个区域一致地打破一个断点,而在其他方面不会打破断点。这从来没有发生过,我无法解决我对我的系统造成的影响。有谁有任何经验的问题?

解决方案

你提到什么( -XX:+ UseParallelGC )是使用jdk6u14和15发现的错误的解决方法。



,它是用jdk6u16修复的。


I've been using Eclipse for ages and I use the debugger all the time but recently I've known it to skip over breakpoints while debugging! I've even had it so that I've set a break point on a println I'll see the text come out but not hit the breakpoint. Also sometimes I'll hit a break point consistently in one area of the code but not in others. This never used to happen and I can't work out what I've done to my system to cause this. Has anyone else had any experience of the problem?

解决方案

What you mention ("-XX:+UseParallelGC") is a workaround for the bug found with jdk6u14 and 15.

As mentionned in "Eclipse SWING app: breakpoint hit only after an uncaught exception is thrown", it is fixed with jdk6u16.

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

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