【问题标题】:Enable Tracing for a plugin in Eclipse install在 Eclipse 安装中为插件启用跟踪
【发布时间】:2014-12-15 20:46:00
【问题描述】:

我想为 eclipse 安装启用 org.eclipse.wst.server.core 插件的跟踪。我读过我需要 .options 安装文件夹中的 eclipse 文件。 .options 文件的内容:

org.eclipse.wst.server.core/debug=true
org.eclipse.wst.server.core/extension_point=true

我还在 eclipse.ini 中指定了 -debug 选项。这里是 sts/eclipse.ini 的内容:

-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-debug
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-XX:MaxPermSize=256m
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xdock:icon=../Resources/sts.icns

该文件位于 eclipse 文件夹下(与 eclipse.ini 所在的位置相同) 这行不通。我没有在日志中看到跟踪语句。 有人知道这个设置有什么问题吗?

【问题讨论】:

    标签: eclipse trace pde


    【解决方案1】:

    您必须使用-debug 选项启动Eclipse 才能打开它。

    您还可以指定-debug filename 为选项文件指定不同的路径

    【讨论】:

    • eclipse.ini 是放置 -debug 选项的正确位置吗?
    • eclipse.ini 或命令行。在 eclipse.ini 中,它必须在任何 -vmargs 之前
    • 我添加了 -debug 但没有帮助。我列出了 INI 文件的内容以防万一。还有什么我可能遗漏的吗?
    • 也许我没有在正确的位置查找日志文件?我正在打开 /.metadata/.log 文件并认为它是一个日志文件。这是正确的吗?
    • 当我正确指定 .options 文件的路径时工作。这足以让我进步。感谢您抽出宝贵时间回答我的问题 :-)
    猜你喜欢
    • 2021-01-28
    • 1970-01-01
    • 1970-01-01
    • 2015-10-20
    • 2011-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多