gpt4 book ai didi

php - xdebug 安装不工作

转载 作者:行者123 更新时间:2023-12-05 08:21:27 26 4
gpt4 key购买 nike

所以我在 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com