【发布时间】:2011-09-05 03:43:45
【问题描述】:
所以我在 php.ini 中添加了以下行:
zend_extension="Z:\wamp2\bin\php\php5.3.0\ext\php_xdebug.dll"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug 确实位于具有该文件名的目录中
我设置report_zend_debug = 0
重启 wamp 等
但是 xdebug 仍然没有出现在 phpinfo....
apache 错误日志显示如下:
PHP Warning: PHP Startup: Unable to load dynamic library 'Z:/wamp2/bin/php/php5.3.0/ext/php_imagick_ts.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Mon May 30 19:07:42 2011] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
[Mon May 30 19:07:42 2011] [notice] Server built: Dec 10 2008 00:10:06
[Mon May 30 19:07:42 2011] [notice] Parent: Created child process 4260
Failed loading Z:\wamp2\bin\php\php5.3.0\ext\php_xdebug.dll
PHP Warning: PHP Startup: Unable to load dynamic library 'Z:/wamp2/bin/php/php5.3.0/ext/php_imagick_ts.dll' - The specified module could not be found.\r\n in Unknown on line 0
<br />
<b>Warning</b>: PHP Startup: Unable to load dynamic library 'Z:/wamp2/bin/php/php5.3.0/ext/php_imagick_ts.dll' - The specified module could not be found.
in <b>Unknown</b> on line <b>0</b><br />
[Mon May 30 19:07:43 2011] [notice] Child 4260: Child process is running
[Mon May 30 19:07:43 2011] [notice] Child 4260: Acquired the start mutex.
[Mon May 30 19:07:43 2011] [notice] Child 4260: Starting 64 worker threads.
[Mon May 30 19:07:43 2011] [notice] Child 4260: Starting thread to listen on port 80.
PHP 是 5.3.0 版
获得Xdebug 2.1.1 PHP 5.3 VC9(32位)版本
【问题讨论】:
-
对于初学者,我会禁用 ImageMagick 扩展,因为它似乎不可用
-
我不认为它在这里直接相关,但我发现
zend_extension并不默认为extension_dir,而是与您的php 安装相关。所以如果设置相对路径你需要ext/php_xdebug-2.x.x-5.x-vc9.dll,例如,你必须添加ext/部分。
标签: php apache installation wamp xdebug