以扩展形式加载xdebug。
注意php_xdebug.dll要在xampp/php/ext目录下
然后php.ini中添加的内容 (xampp已经添加好,我们只需要去掉注释即可)
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension=php_xdebug.dll
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
;xdebug.remote_handler=dbgp
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir=”D:\xampp\tmp”
再重启apache, OK。 开始测试。
eclipse配置如下:
PHP的 xdebug配置方法,布布扣,bubuko.com
原文:http://www.cnblogs.com/xumng/p/3661436.html