调试eclipse IDE本身 [英] Debug eclipse IDE itself

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

问题描述

我很想学习如何调试eclipse IDE。
回到使用VS进行.NET开发的时候,我可以随时将VS附加到进程,并开始追踪问题。我希望与eclipse有类似的东西,但作为Java世界的新手,我不知道这一点。



我的日食最近经常挂起,当我跑它连同iBUS(在Ubuntu 9.10上)。我希望我能找到真正挂起我的eclipse的东西,并避免这种情况(想像你的eclipse挂起,你的所有打开的文件都被关闭,只是让我疯狂)。

解决方案

编辑您的eclipse.ini文件,在底部添加以下内容(在-vmargs下):

  -Xdebug 
-Xnoagent
-Xrunjdwp:transport = dt_socket,server = y,suspend = n,address = 8000

然后在同一版本的另一个Eclipse中,您可以导入您有兴趣调试的插件。文件 - >导入... - >插件开发 - >插件和片段。导入从活动平台,并导入为源文件夹项目,在下一个选项卡上选择您感兴趣的插件。



根据需要设置断点。 p>

然后在Debug Configurations中创建一个新的Remote Java Application。本地主机,端口8000.在源选项卡上添加Java项目并进行调试。


I would love to learn how to debug eclipse IDE. Back to the time when I was using VS for .NET development, I can attach VS to a process at anytime and start to trace down the problem. I hope there would be something similar with eclipse, but as a newbie to the Java world, I don't know about that.

My eclipse recently often hang when I run it together with iBUS (on Ubuntu 9.10). I hope that I can find out what really hang my eclipse and avoid that (Imagine your eclipse hang and every of your opened files were closed. It just drives me crazy).

解决方案

Edit your eclipse.ini file an add the following to the bottom (beneath -vmargs):

-Xdebug
-Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Then in another Eclipse of the same version, you can import the plugins you are interested in debugging. File -> Import ... -> Plug-in Development -> Plug-ins and Fragments. Import From the active platform, and Import As "Projects With Source Folders", on the next tab select the plugins you are interested in.

Set breakpoints as appropriate.

Then create in Debug Configurations, create a new "Remote Java Application". localhost, port 8000. Add the Java projects on the source tab, and debug.

这篇关于调试eclipse IDE本身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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