Xdebug不作为zend扩展IIS7 [英] Xdebug not as zend extension IIS7

查看:157
本文介绍了Xdebug不作为zend扩展IIS7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将 xdebug 加载为 Zend 扩展名,因为 php。 ini 会自动输入错误的字词。

I can't get xdebug loaded as Zend extension, because the php.ini automatically puts in the wrong term.

phpinfo()中的消息是


XDEBUG未加载为ZEND EXTENSION

XDEBUG NOT LOADED AS ZEND EXTENSION

我在Windows Server 2008 R2 Enterprise $ b上使用IIS 7.5 $ b PHP 5.3.8
Zend Engine v2.3.0

I'm Using IIS 7.5 on Windows Server 2008 R2 Enterprise PHP 5.3.8 Zend Engine v2.3.0

我的部分 php.ini

[xdebug]
zend_extension=php_xdebug-2.2.0-5.3-vc9-nts.dll
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

没有记录错误。

我需要激活IIS设置中的每个扩展名。当我重新启动IIS时, php.ini 更新了行

I need to activate every extension in IIS settings. When I then restart IIS, php.ini is updated with the line

[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
extension=php_xdebug-2.2.0-5.3-vc9-nts.dll

为什么会这样?

推荐答案

(由OP解决并在一个问题中回答编辑。转换为社区维基答案。请参阅问题没有答案,但问题在评论中得到解决(或在聊天中扩展)

(Solved by the OP and answered in a question edit. Converted to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )

OP写道:


现在可以在将扩展路径更改为绝对路径后工作。无论如何都添加了2行,但 phpinfo()现在显示完整的xdebug配置。

It now works after changing the extension path to absolute. The 2 lines were added anyway, but phpinfo() now shows the full xdebug config.

php.ini的工作部分

[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
zend_extension="C:\Program Files (x86)\php\ext\php_xdebug-2.2.0-5.3-vc9-nts.dll"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
[PHP_XDEBUG-2.2.0-5.3-VC9-NTS]
extension=php_xdebug-2.2.0-5.3-vc9-nts.dll

这篇关于Xdebug不作为zend扩展IIS7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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