php - XDebug 未在 Windows 7 64 位 PHP 5.4 上加载

标签 php xdebug

我在 apache 上运行 php。我已经下载了我认为是正确的 xdebug 编译 dll 的 php 版本 5.4 64 位窗口。我启用了线程安全并且它正在使用 VC9。我已经下载了 dll 并将其放置在这里:

C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll

这是我的 php.ini 中的内容:

[xdebug]
zend_extension = "C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll"

当我启动 Apache 时,出现以下错误:

[Wed Apr 04 17:01:56 2012] [notice] Parent: Received restart signal -- Restarting the server.
Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll
hild process is ending.
[Wed Apr 04 17:01:56 2012] [notice] Apache/2.2.22 (Win32) PHP/5.4.0 configured -- resuming normal operations
[Wed Apr 04 17:01:56 2012] [notice] Server built: Jan 28 2012 11:16:39
[Wed Apr 04 17:01:56 2012] [notice] Parent: Created child process 2120
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Child process is running
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Acquired the start mutex.
[Wed Apr 04 17:01:57 2012] [notice] Child 2120: Starting 64 worker threads.
[Wed Apr 04 17:01:57 2012] [notice] Child 5624: Released the start mutex
[Wed Apr 04 17:01:58 2012] [notice] Child 5624: All worker threads have exited.
[Wed Apr 04 17:01:58 2012] [notice] Child 5624: Child process is exiting
Failed loading C:\php5\extras\php_xdebug-2.2.0RC1-5.4-vc9-x86_64.dll

最佳答案

为了确保您下载了正确的二进制文件,您可以使用位于http://xdebug.org/wizard.php 的向导。它会准确地告诉您要下载哪个文件以及您应该在哪个 php.ini 文件中放置 zend_extension 行(当然,您现在使用的是正确的,因为您会收到“加载失败”错误)。

关于php - XDebug 未在 Windows 7 64 位 PHP 5.4 上加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10019966/

相关文章:

php - 表单提交不发送任何 POST 数据

javascript - 如何在 json 中提供日期格式选项?

php - 在 Eclipse 中查看未使用(未链接和未包含)的 PHP 文件

php - 在 CentOS7 上安装 Xdebug,出现错误 undefined symbol : compiler_globals

php - 德鲁帕尔 8 : Debugging tests with XDebug and PHPStorm - cennot step through

php - Laravel Eloquent 关系无 key

PHP 超时不会停止脚本?

php - 如何从 XDebug session 中中断 foreach 循环?

php - 从容器中获取 docker 网络的私有(private) ip 以配置 xdebug remote_host

eclipse - 如何使用 XDebug 从 Eclipse PDT 中的随机请求启动调试 session ?