【问题标题】:Debugging eclipse with eclipse用eclipse调试eclipse
【发布时间】:2016-08-02 19:18:06
【问题描述】:

我想调试最新 Neon 版本中可用的 Eclipse 视图。我通过插件检查器(鼠标悬停时的 ALT+SHIFT+F1)找到了负责视图行为的类。我关注this question(以及一些类似的文章)来调试一个 eclipse 实例和另一个。

我做了以下步骤:

  1. 我启动了一个我想调试的 Eclipse 实例
  2. 我启动了另一个 Eclipse 实例
  3. 我打开调试配置视图
  4. 我创建了新的远程 Java 应用程序配置,用“localhost”填充主机,用“1044”填充端口
  5. 我单击调试,然后出现错误“无法连接到远程 VM。连接被拒绝。连接被拒绝:连接”

我做错了什么?

补充:

步骤 1 中的 eclipse.ini

-vm
I:/prep_ide_win_test/Tools/jre/jre/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.rcp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

第 2 步中的 eclipse.ini

-vm
I:/prep_ide_win_test/Tools/jre/jre/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.rcp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m

启动我的调试配置

一个错误

//编辑:我正在 Eclipse 欢迎屏幕中寻找此按钮的功能:

【问题讨论】:

    标签: eclipse debugging jvm remote-access


    【解决方案1】:

    创建一个新的 Eclipse 应用程序 配置,然后调试它。

    【讨论】:

    • 抱歉回复晚了。遗憾的是,这并没有像安装的那样启动确切的 Eclipse。更具体地说,我想查看欢迎屏幕上“查看 IDE 配置设置”选项的实现,如果我将空项目作为空应用程序启动,则该选项不存在。 /查看原始答案中的编辑。
    • 好吧,我管理了如何启动与运行完全相同的 Eclipse 实例。我已经创建了 Eclipse 应用程序配置,在其中运行产品:选择我必须选择 org.eclipse.epp.package.rcp.product(在我的情况下),而不仅仅是 org.eclipse.platform.ide。谢谢。
    猜你喜欢
    • 2013-01-29
    • 2017-08-20
    • 1970-01-01
    • 2011-04-13
    • 1970-01-01
    • 2015-12-05
    • 2015-01-12
    • 2013-09-28
    • 2011-12-25
    相关资源
    最近更新 更多