Eclipse - 如何在附加到目标平台插件的代码中打开和设置断点? [英] Eclipse - How to open and set breakpoints in code attached to the target platform plugins?

查看:267
本文介绍了Eclipse - 如何在附加到目标平台插件的代码中打开和设置断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Eclipse的新手。我的eclipse工作台中安装了一些插件及其源代码插件(因此我已经附加了这些插件的代码)。



如何打开(并查看)这些安装的插件的源代码和设置断点,以便我可以调试这些插件?



我的这个任务背后的动机是以便更深入地了解这些插件的一些源代码。



尽管帖子如何在第三方库中设置断点?解释了一些方法,它没有不要说如何打开并查看附加的源代码。



提前感谢

解决方案

如果您只需要断点,请使用Ctrl-Shift-T(打开类型),输入类的名称并设置断点。



但是如果你真的想了解这个插件在questio n,还有更多:打开PDE视角,有一个视图插件。选择您感兴趣的插件,从插件的上下文菜单中选择导入 - >作为源。这将导入插件到您的工作区,所以你可以真正地调查所有的工件里面,不仅来源。默认情况下,您的启动配置将使用工作空间中的插件作为首选,因此您甚至可以立即修改导入的插件,并在运行工作区时查看效果。


I am a newbie to Eclipse. I have some plug-ins installed in my eclipse workbench along with their source plugins (thus i have attached code with these plugins).

How can I open(and view) the source code of these installed plugins and set break-points so that I could debug these plug-ins?

My motive behind this task is to get a deeper understanding of the source code of some of these plug-ins.

Though the post How to set a breakpoint in Eclipse in a third party library? explains some methods, it doesn't tell how to open and view the attached source code.

Thanks in advance.

解决方案

If you only need breakpoints, use Ctrl-Shift-T (Open Type), enter the name of the class and set the breakpoints.

But if you really want to learn about the plugin in question, there is more: Open PDE perspective, there is a view "Plugins". Select the plugin you are interested in, choose Import->As Source from the context menu of the plugin. This imports the plugin into your workspace, so you can really investigate all artifacts inside, not only the source. By default, your launch configuration will use the plugins from the workspace as first choice, so you can even modify that imported plugin now and see the effects when running your workspace.

这篇关于Eclipse - 如何在附加到目标平台插件的代码中打开和设置断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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