按照网上的教程一直没有配置好,上官网看到一句话, If you don‘t know which one you need, please refer to the custom installation instructions.
如果你不知道选择哪一个版本,参考相关说明
This page helps you finding which file to download, and how to configure PHP to get Xdebug running. Please paste the full output of phpinfo() (either a copy & paste of the HTML version, the HTML source or php -i
output) and submit the form to receive tailored download and installation instructions. Do not paste the raw HTML (from view-source) into the form.
就是将本机 phpinfo()的源码拷贝到 Form框里,点提交,会自动分析你本地安装情况
我的是:
php.ini
in the same folder as where php.exe
is and add the linezend_extension = C:\php\php_xdebug-2.2.5-5.4-vc9.dll
If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page.
奇怪的是,我本机PHP是解压到D:\php 目录下的怎么会跑到C盘,最终百度,需要将php.ini下的 extension dir改成 ext实际上就是把 ;去掉即可
光这样还不行,还要把php.ini复制到C:\Windows下面才可以 phpinfo()就看到Xdebug了
Zend Studio配置Xdebug,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/niuge/p/3791879.html