Xdebug not as zend extension IIS7

左心房为你撑大大i 提交于 2019-12-21 01:19:10

问题


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

The message in phpinfo() is

XDEBUG NOT LOADED AS ZEND EXTENSION

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

My part of 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"

No errors logged.

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

Why this?


回答1:


(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) )

The OP wrote:

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

Working part of 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


来源:https://stackoverflow.com/questions/11299787/xdebug-not-as-zend-extension-iis7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!