XAMPP 无法安装 xdebug

2022-01-14 00:00:00 xampp php xdebug netbeans

你好我已经安装了xampp,把php.ini改成这个:

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

[XDebug]
zend_extension = "C:xamppphpextphp_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	mp"
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	mp"

于是我创建了一个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:xamppphpphp.ini
Extensions directory: C:xamppphpext
Instructions

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

这告诉我它没有安装,所以我按照说明重新启动了服务器.再次打开info 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:xamppphpext文件夹

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:xamppphpext folder

步骤 4: 编辑您的 php.ini 文件并添加以下行zend_extension = D:xamppphpextyour-php_xdebug.dll

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

第 5 步:重启服务器

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

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

complete video Tutorial for PHP Debug Example : Demo

相关文章