XAMPP无法安装xdebug [英] XAMPP can not install xdebug

查看:203
本文介绍了XAMPP无法安装xdebug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Hello I have installed xampp, changed the php.ini to this:

[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文件:

So I created a php file:

<?php
phpinfo();
?>

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

Copy pasted the content and pasted in the xdebug wizard and got this output:

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,再次复制所有内容,然后再次将其粘贴到向导中.按下按钮,我得到完全相同的输出,我不知道我在做什么错,有人可以告诉我我在做什么错吗?

This tells me that it is not installed, so I followed the instructions and restarted the server. Opened the info php again, copied everything again and pasted it in the wizard again. Press the button and I get the exact same output, I don't know what I am doing wrong can anyone tell me what I do wrong?

推荐答案

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

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

step 2: copy and paste your phpinfo output to textarea which will be displayed on https://xdebug.org/wizard.php

步骤3:单击分析我的phpinfo()输出"按钮,它将分析您的系统,并在此基础上为您提供合适的 php_xdebug.dll 文件需要放在 D:\ xampp \ php \ ext 文件夹

step 3: click on analyze my phpinfo() output button, it will analyze your system and based on that it will give you suitable php_xdebug.dll file that you need to put at D:\xampp\php\ext folder

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

step 4: edit your php.ini file and add following line zend_extension = D:\xampp\php\ext\your-php_xdebug.dll

第5步:重新启动服务器

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

用于PHP调试示例的完整视频教程:演示

complete video Tutorial for PHP Debug Example : Demo

这篇关于XAMPP无法安装xdebug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆