PHP的 xdebug配置方法

以扩展形式加载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配置方法,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。