WINDOWS下安装XDEBUG

发布时间:2014-03-26 07:20
WINDOWS下安装XDEBUG
 
1 先访问phpinfo.php,将phpinfo();函数的结果打印出来
2 直接复制所有的phpinfo()的结果到下面的页面(注意,一定不要用查看页面源代码方式去复制,而是直接在html页面上复制),提交到这个页面:http://www.xdebug.org/find-binary.php
 
3 提交后,上述页面会给出详细安装步骤:
Tailored Installation Instructions
 
Summary
 
Xdebug installed: no
Server API: Apache 2.0 Handler
Windows: yes - Compiler: MS VC11 - Architecture: x64
Zend Server: no
PHP Version: 5.5.9
Zend API nr: 220121212
PHP API nr: 20121212
Debug Build: no
Thread Safe Build: yes
Configuration File Path: C:\Windows
Configuration File: E:\MyServer\php5.5.9\php.ini
Extensions directory: E:\MyServer\php5.5.9\ext
Instructions
 
Download php_xdebug-2.2.3-5.5-vc11-x86_64.dll
Move the downloaded file to E:\MyServer\php5.5.9\ext
Edit E:\MyServer\php5.5.9\php.ini and add the line
zend_extension = E:\MyServer\php5.5.9\ext\php_xdebug-2.2.3-5.5-vc11-x86_64.dll
Restart the webserver
 
注意日志配置方式:
[xdebug]
xdebug.auto_trace=On
xdebug.show_mem_delta=On
xdebug.dump.REQUEST=Off
xdebug.trace_output_dir=E:/MyServer/xdebug