【问题标题】:equivalent of file:// or txmt:// protocol for Eclipse PDT 2.1?相当于 Eclipse PDT 2.1 的 file:// 或 txmt:// 协议?
【发布时间】:2011-02-05 22:32:40
【问题描述】:

我在 Eclipse 中使用 xdebug(在 OSX 上)。我想我记得在某处读过可以将错误输出(或调用堆栈)链接到文本编辑器(如 Textmate)。我想知道是否可以为 Eclipse 做同样的事情。

编辑:我发现我想使用的是 xdebug.file_link_format 设置。对于 OSX 并在 TextMate 中打开,设置为: xdebug.file_link_format = "txmt://open?url=file://%f&line=%l"

知道如何使用 Eclipse PDT 2.1 做到这一点吗?我知道我可以使用 file:// 协议,但是 a) 我不想将 PHP 的系统范围默认设置为 eclipse 和 b) 这不会将它链接到项目,只是原始文件。

【问题讨论】:

    标签: eclipse debugging xdebug eclipse-pdt


    【解决方案1】:

    您当然可以使用 NetBeans 做到这一点。您需要将此行添加到您的 php.ini 文件中:

    xdebug.remote_enable=On

    【讨论】:

    • 我已经让 xdebug 工作了(使用 remote_enable=On),但我希望 xdebug 向我的浏览器吐出的漂亮错误报告可以链接到我在 eclipse 中的编辑器。
    【解决方案2】:

    您可能必须注册客户协议并使用该协议定义链接

    http://kb.mozillazine.org/Register_protocol

    它对我有用。我的 xdebug 链接有点像 eclipse://[pathtofile]

    :)

    也检查一下

    http://www.jaylib.org/pmwiki/pmwiki.php/EclipsePlugins/EclipseCall

    【讨论】:

      猜你喜欢
      • 2011-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-15
      • 2023-02-02
      • 2012-01-14
      • 2017-06-30
      相关资源
      最近更新 更多