php - xdebug 安装不工作

标签 php apache installation wamp 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"

关于php - xdebug 安装不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6182317/

相关文章:

php - ReDJ 插件从 Joomla 2.5 迁移到 Joomla 3(管理面板中没有显示)

eclipse - 如何在 Aptana Studio 3+ 上安装 Eclipse 插件

eclipse - 如何使用终端在 Ubuntu 12.04 上安装最新版本的 Eclipse Classic?

javascript - 将 JSON 数组中的数据放入 Javascript 数组

php - 用于检查字符串是否为 mysql 反斜杠的函数

php - Atom 中的自定义 PHP 代码段

.net - 为.net IIS应用程序选择XPath版本

macos - 为什么 Homebrew apache 不在启动时启动?

java - apache httpclient 4.4 的 HTTPs 连接

apache - 是否有 James-3 的 war 文件可以将其部署在 glassfish/tomcat 中?