如何正确配置 xdebug.file_link_format? [英] How to correctly configure xdebug.file_link_format?

查看:24
本文介绍了如何正确配置 xdebug.file_link_format?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望 xdebug 输出的错误消息在浏览器中显示为链接,以便我可以使用 TextMate 快速打开它们.

I want error messages outputed by xdebug to show up as links in the browser so I can open them quickly using TextMate.

我在我的 php.ini 文件中添加了以下行,重新启动了 apache 并在我的一个 php 脚本中添加了一些语法错误,但文件名没有显示为链接.Xdebug 在我的系统上运行良好.

I added the following line to my php.ini file, restarted apache and added a few syntax errors to one of my php scripts but the file name is not showing up as a link. Xdebug is otherwise working fine on my system.

xdebug.file_link_format="txmt://open/?url=file://%f&line=%l"

是否需要设置其他配置才能使这项工作正常进行?

Are there additional configurations that I need to set up to make this work?

以下是我的 php.ini 中所有与 xdebug 相关的配置设置:

Here are all the xdebug related configuration settings in my php.ini:

[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.file_link_format="txmt://open/?url=file://%f&line=%l"

推荐答案

我正在使用 xdebug 2.1.0RC1 运行 snow leopard,并且可以单击错误作为链接,将我带到 textmate 中的正确行,因此可以使此工作正常.

I am running snow leopard with xdebug 2.1.0RC1 and can click errors as links that take me to the correct line in textmate so it is possible to have this working.

这篇关于如何正确配置 xdebug.file_link_format?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆