简体   繁体   English

Windows上的Helios Eclipse Java调试器突出源代码非常慢

[英]Helios Eclipse java debugger on Windows is very slow to highlight source code

I have Eclipse Helios SR1 installed on Windows XP. 我在Windows XP上安装了Eclipse Helios SR1。 I am writing/debugging Java code using JDK 1.6. 我正在使用JDK 1.6编写/调试Java代码。

When I debug and I hit a breakpoint, Eclipse is fast to show me the stacktrace. 当我调试并遇到断点时,Eclipse很快向我展示了堆栈跟踪。 (See #1 in attached image.) (请参阅附件中的#1。)

However, the source code line highlight (light green, see #2 in attached image) is very slow to appear. 但是,源代码行突出显示(浅绿色,请参见附件中的#2)显示的速度非常慢。 Oddly, when I first installed Eclipse, this was very fast. 奇怪的是,当我第一次安装Eclipse时,这非常快。 Now it is very slow. 现在很慢。 It takes about 15 seconds to highlight as light green. 高亮显示为浅绿色大约需要15秒。

Any ideas what is wrong with my Eclipse install/config? 任何想法我的Eclipse安装/配置有什么问题吗?

FYI: Very fast processor + 4GB of RAM. 仅供参考:超快的处理器+ 4GB的RAM。 Plenty of disk space. 足够的磁盘空间。 I have tried a "Hello, World" test Java project. 我尝试了一个“ Hello,World”测试Java项目。 Just a few lines of code... still the same issue when hitting a vanilla breakpoint. 仅有几行代码...达到原始断点时仍然是相同的问题。

在此处输入图片说明

According to running-a-program-in-debug-mode-is-incredible-slow I succeeded with running 根据在调试模式下运行程序令人难以置信的缓慢,我成功运行了

eclipse -clean 日食清洁

(test this before you setup a new workspace) (在设置新的工作区之前进行测试)

This is surely not an Eclipse problem. 这肯定不是Eclipse问题。 If it is highlighting, means its working. 如果突出显示,则表示其正常工作。

There must be something wrong with the Windows. Windows一定有问题。 More RAM does not mean necessarily fast processing. 更多的RAM并不一定意味着快速处理。 Check Task Manager, and try to monitor processes, especially the java one. 检查任务管理器,并尝试监视进程,尤其是Java进程。 There can be multiple java processes, kill unnecessary ones. 可以有多个Java进程,杀死不必要的Java进程。

If the laptop using some sort of disk encryption, then this is surely possible. 如果笔记本电脑使用某种形式的磁盘加密,那么这肯定是可能的。

If your anti-virus is hogging the CPU, quite possible. 如果您的防病毒软件占用了CPU,那么很有可能。

否则,您可以做的另一件事是,您每天都可以手动清理项目,也可以将控制台限制设置为无限制。

The answer is simple: Create a new workspace. 答案很简单:创建一个新的工作区。

I did it and now my debugger is super-fast again. 我做到了,现在我的调试器又超快了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM