相当于 Eclipse PDT 2.1 的 file:// 或 txmt:// 协议?
我正在将 xdebug 与 eclipse (在 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) 这不会将其链接到项目,而只是链接到原始文件。
I am using xdebug with eclipse (on OSX). I think I remember reading somewhere that it was possible to link the error output (or the Call Stack) to a text editor (like Textmate). I was wondering if its possible to do the same thing for Eclipse.
EDIT: I found out that what I would like to use is the xdebug.file_link_format setting. For OSX and to open in TextMate, the setting would be:
xdebug.file_link_format = "txmt://open?url=file://%f&line=%l"
Any idea how to do this with Eclipse PDT 2.1? I know I could use the file:// protocol, but a) i don't want to set the system wide default for PHP to eclipse and b) this wouldn't link it to the project, just the raw file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您当然可以使用 NetBeans 来做到这一点。您需要将此行添加到 php.ini 文件中:
xdebug.remote_enable=On
You can certainly do it with NetBeans. You need to add this line to your php.ini file:
xdebug.remote_enable=On
您可能必须注册自定义协议并使用该协议定义链接
http://kb.mozillazine.org/Register_protocol
这对我有用。我的 xdebug 链接类似于 eclipse://[pathtofile]
:)
检查一下
http ://www.jaylib.org/pmwiki/pmwiki.php/EclipsePlugins/EclipseCall
You might have to register custome protocol and define links using that protocol
http://kb.mozillazine.org/Register_protocol
It works for me . My xdebug links are sth like eclipse://[pathtofile]
:)
check this also
http://www.jaylib.org/pmwiki/pmwiki.php/EclipsePlugins/EclipseCall