Home >php教程 >php手册 >Xdebug安装

Xdebug安装

WBOY
WBOYOriginal
2016-06-13 10:36:50903browse

Xdebug安装

我自己使用的是PHP5.2.5,下载的xdebug文件名为:php_xdebug-2.0.3-5.2.5.dll,将文件放到php/ext文件夹下即可

3.配置

xdebug配置

打开php.ini

在最后一行加入以下配置代码,配置说明已经做好注释

;载入Xdebug
zend_extension_ts="c:/php/ext/php_xdebug.dll"

;xdebug配置
[Xdebug]
;开启自动跟踪
xdebug.auto_trace = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart = On
;开启远程调试
xdebug.remote_enable = On
;收集变量
xdebug.collect_vars = On
;收集返回值
xdebug.collect_return = On
;收集参数
xdebug.collect_params = On

最后我是在PHP.INI里面写

[Zend]
zend_extension_manager.optimizer_ts="f:ServerCorelibOptimizer-3.3.0"
;zend_extension_ts="f:ServerCorelibendExtensionManager.dll"
zend_extension_ts="F:ServerCorePHP5extphp_xdebug.dll"
才成功,其他写法不太行

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn