php - XAMPP 无法安装 xdebug

标签 php netbeans xampp xdebug

您好,我已经安装了 xampp,将 php.ini 更改为:

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.3-vc9.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"

所以我创建了一个 php 文件:

<?php
phpinfo();
?>

复制粘贴内容并粘贴到 xdebug 向导中并得到以下输出:

Tailored Installation Instructions

Summary

Xdebug installed: no
Server API: Apache 2.4 Handler Apache Lounge
Windows: yes - Compiler: MS VC9 - Architecture: x86
Zend Server: no
PHP Version: 5.4.7
Zend API nr: 220100525
PHP API nr: 20100525
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: C:\xampp\php\php.ini
Extensions directory: C:\xampp\php\ext
Instructions

Download
Move the downloaded file to C:\xampp\php\ext
Edit C:\xampp\php\php.ini and add the line
zend_extension = C:\xampp\php\ext\
Restart the webserver
If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page.

这告诉我它没有安装,所以我按照说明重新启动了服务器。再次打开信息 php,再次复制所有内容并再次粘贴到向导中。按下按钮,我得到完全相同的输出,我不知道我做错了什么,谁能告诉我我做错了什么?

最佳答案

第 1 步:转到 https://xdebug.org/wizard.php

第 2 步: 将您的 phpinfo 输出复制并粘贴到将显示在 https://xdebug.org/wizard.php 上的文本区域

第 3 步: 点击分析我的 phpinfo() 输出按钮,它将分析您的系统,并根据分析结果为您提供合适的 php_xdebug.dll 文件需要放在D:\xampp\php\ext文件夹

第 4 步:编辑您的 php.ini 文件并添加以下行 zend_extension = D:\xampp\php\ext\your-php_xdebug.dll

第 5 步:重启服务器

引用视频教程:https://www.youtube.com/watch?v=HbJOP0YcSjs

PHP 调试示例的完整视频教程:Demo

关于php - XAMPP 无法安装 xdebug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16935347/

相关文章:

mysql - 如何在XAMPP中手动将数据库直接导入到phpMyAdmin的数据文件夹中?

PHP 通过 file_get_contents 获取调用你的脚本的站点

php - 发布复选框值

php - 在 Fedora 上安装 MediaWiki 的问题

netbeans - 如何将 NetBeans IDE 与某些文件扩展名关联?

python - mod_python/MySQL 在插入大量数据时出现错误 : "OperationalError: (2006, ' MySQL server has gone away')"

php - 从mysql获取两个时间戳之间的数据

svn - NetBeans SVN : "Show Annotations" doesn't work

netbeans 中的 android maven 插件

php - Codeigniter数据库配置