简体   繁体   English

Eclipse Luna调试仅缓慢到第一个断点

[英]Eclipse Luna debug slow only up to the very first breakpoint

Reading through Eclipse debug topics I did not find an answer to my specific problem. 阅读Eclipse调试主题我没有找到我的具体问题的答案。 I wonder if anybody else has seen it. 我想知道是否还有其他人看过它。 I only experience this since switching to Luna, I used Kepler and Indigo before. 我只是在切换到Luna之后才体验到这一点,之前我使用过Kepler和Indigo。

I usually debug Tomcat, but it happens for any one-class test app. 我通常调试Tomcat,但它适用于任何一类测试应用程序。 When the app hits the first breakpoint, Debug view is shown, then I have to wait 20-30 seconds for the debugger to initialize, and only then is the code line highlighted in the editor. 当应用程序到达第一个断点时,会显示Debug视图,然后我必须等待20-30秒才能使调试器初始化,然后才会在编辑器中突出显示代码行。 From that point on every break is immediate. 从那时起,每一次休息都是立即的。 Other kind of slowness is not experienced. 没有经历其他类型的缓慢。 In Tomcat any subsequent request stops quickly. 在Tomcat中,任何后续请求都会很快停止。 The problem is that it's restarted often when hot code replacement is not feasible. 问题是当热代码替换不可行时,它经常重启。

Anybody knows how to tweak it? 有谁知道如何调整它? There is no building or validating process going on at that time, and I tried to allocate various amounts of memory to Eclipse. 当时没有构建或验证过程,我试图为Eclipse分配不同数量的内存。 -Xms256m, -Xmx2048m usually works very well for me. -Xms256m,-Xmx2048m通常对我很有用。

I don't know how to tweak it, but in experiencing the same problem I found an Eclipse bug ticket already created for this along with duplicates: 440470 ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=440470 ). 我不知道如何调整它,但在遇到同样的问题时,我发现已经为此创建了一个Eclipse错误票以及重复项:440470( https://bugs.eclipse.org/bugs/show_bug.cgi?id= 440470 )。

Starting Eclipse with "-consolelog -debug" hasn't showed any additional errors related to this. 使用“-consolelog -debug”启动Eclipse时未显示任何与此相关的其他错误。

I am working with a large core Java project and have also installed EMF (Eclipse Modeling Framework) and GEF (Graphical Editor Framework) plugin packages and dependencies via update site. 我正在使用一个大型核心Java项目,并且还通过更新站点安装了EMF(Eclipse Modeling Framework)和GEF(图形编辑器框架)插件包和依赖项。 I have installed these in previous versions of Eclipse without the debug delay issue. 我已经在以前版本的Eclipse中安装了这些,没有调试延迟问题。 I tried closing this project and created a new test project with a simple Java class. 我尝试关闭这个项目,并用一个简单的Java类创建了一个新的测试项目。 There was no delay when debugging this class. 调试这个类时没有延迟。

Clearing all breakpoints worked for me too. 清除所有断点对我也有用。 Probably it was because of that breakpoint in jar files it would be taking more time for generating line numbers for those files. 可能是因为jar文件中的断点,它将花费更多的时间来为这些文件生成行号。

I found this post trying solve my issue: Very very slow to initialize tomcat, hibernate, etc. If you fall down here for similar problem I would suggest you what resolved to me. 我发现这篇文章试图解决我的问题:初始化tomcat,hibernate等非常慢。如果你因为类似的问题摔倒在这里,我建议你解决我的问题。 Try: 尝试:

  • Clear all breakpoints, mainly those in API's, clear expressions too. 清除所有断点,主要是API中的断点,也是清晰的表达式。

That's what worked for me. 这对我有用。

我的问题已在Luna SR1中修复。

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

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