声明:个人开发环境是windows+wampserverphp
F:\wamp\bin\php\php5.5.12\zend_ext
若是没有该扩展文件,须要到xdebug官网下载,下载XDebug下载地址:http://www.xdebug.org/ , 必须下载跟机器上安装的php匹配的版本才行。具体下载方法以下:将phpinfo()网页的源代码拷贝到http://www.xdebug.org/find-binary.php , 而后按照指导安装便可。以下图所示: html
其余具体配置请参考 http://www.javashuo.com/article/p-znwqudxo-ge.html ,这里只以wampserver举例apache
须要修改两个配置文件,路径分别是windows
F:\wamp\bin\php\php5.5.12\php.ini F:\wamp\bin\apache\apache2.4.9\bin\php.ini
添加如下内容bash
[xdebug] zend_extension = "f:/wamp/bin/php/php5.5.12/zend_ext/php_xdebug-2.2.5-5.5-vc11-x86_64.dll" xdebug.remote_enable = on xdebug.profiler_enable = on xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "f:/wamp/tmp" xdebug.show_local_vars=0 xdebug.idekey= PHPSTROM
而后就能够愉快的使用 debug进行调试了ide