Eclipse RCP 应用程序调试
我正在开发 Eclipse RCP 插件项目。 如何通过仅打开必要的视图而不启动新的 Eclipse 调试实例来加速我的 RCP 应用程序调试?
I have developing the Eclipse RCP plugin project.
How to speed up my RCP application debugging by opening only necessary view/s without new Eclipse debug instance launching?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能仅调试一个视图,因为它将需要应用程序上下文提供的对象。
在开发环境中,您可以通过创建 JUnit 来测试您的视图来执行“单元测试”,并将其作为 JUnit 插件测试运行。
详细信息:
人们通常希望将 Eclipse RCP 应用程序作为一个整体进行调试,因为它由许多服务和对象组成,而这些服务和对象不能存在于“视图类本身”中。
当您选择测试并“Run As > JUnit Plug-in Test”时,这将创建一个由测试所需的插件组成的 Eclipse 上下文,这些插件通常由 Eclipse 应用程序本身提供。
You can not debug one view only, as it will need objects provided by the application context.
Inside the development environment, you can execute a "Unit Test" by creating a JUnit to test your View, and run it as a JUnit Plug-in Test.
Details:
One usually wants to debug an Eclipse RCP Application as a Whole, as it consists of many services and objects which can not exist in "the view class itself".
When you select your test and "Run As > JUnit Plug-in Test" this will create an Eclipse Context made of plugins needed to test, that usually are provided by the Eclipse application Itself.