php - xdebug 安装不工作

所以我在 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位)版本

最佳答案

如果您将 PHP 用作 Apache 模块,则需要获取 xdebug TS(线程安全)。 如果您将 PHP 用作 CGI 进程,则需要获取 xdebug(NTS - 非线程安全)。

您还需要匹配构建:

PHP 5.3 VC6 将需要 xdebug VC6

PHP 5.3 VC9 将需要 xdebug VC9

请注意,您的 PHP 版本 5.3.0 非常旧,可能有过时的 API 调用,并且通常不稳定/充满错误。获取最新版本:5.3.6。或者使用默认自带匹配 xdebug 版本的 wamp 包。

这是我的行,一旦取消注释就会加载 xdebug:

[XDebug]
zend_extension = "D:\WampDeveloper\Components\Php\ext\php_xdebug.dll"
xdebug.profiler_enable = 1
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "D:/WampDeveloper/Temp/xdebug"
xdebug.trace_output_dir = "D:/WampDeveloper/Temp/xdebug"

https://stackoverflow.com/questions/6182317/

相关文章:

java - 如何根据元素的一个字段的值对java中的链表进行排序?

function - 为什么 Matlab 看不到我的函数?

ruby-on-rails-3 - Rails 3 在不注销的情况下设计更新密码

perl - 为 LWP::UserAgent 设置参数时出现问题

ruby - 为什么 '\n' 不起作用,$/是什么意思?

f# - 将字典键添加到 F# 中的构造函数

sql - 是什么导致了这种奇怪的 SQL 行为?

amazon-ec2 - 使用pscp自动接受rsa指纹

objective-c - [pool release] 和 [pool drain] 有什么区别?

django - 如果为空,请提供默认个人资料图片