你好,我已经安装了 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.
这告诉我它还没有安装,所以我按照说明重新启动了服务器。再次打开 info php,再次复制所有内容并再次将其粘贴到向导中。按下按钮,我得到完全相同的输出,我不知道我做错了什么,有人可以告诉我我做错了什么吗?
Step 1: goto https://xdebug.org/wizard.php https://xdebug.org/wizard.php
step 2:将 phpinfo 输出复制并粘贴到文本区域,该文本区域将显示在https://xdebug.org/wizard.php https://xdebug.org/wizard.php
step 3:单击分析我的 phpinfo() 输出按钮,它将分析您的系统,并基于此为您提供合适的php_xdebug.dll您需要放置的文件D:\xampp\php\ext folder
step 4:编辑你的php.ini文件并添加以下行zend_extension = D:\xampp\php\ext\your-php_xdebug.dll
step 5:重启服务器
参考视频教程:https://www.youtube.com/watch?v=HbJOP0YcSjs https://www.youtube.com/watch?v=HbJOP0YcSjs
PHP 调试示例的完整视频教程:Demo https://www.youtube.com/watch?v=a14kN2u5nEk
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)