Home > php教程 > php手册 > body text

php Xdebug 调试扩展的安装与使用.

WBOY
Release: 2016-06-13 12:17:47
Original
986 people have browsed it

Xdebug安装

下载xdebug扩展的时候注意xdebug的版本与php版本相对应,不然出现不必要的麻烦!

我自己使用的是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-2.0.4-5.2.8.dll"


;如果使用相对路径可以这样写


;extension= "php_xdebug-2.0.4-5.2.8.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:\ServerCore\lib\Optimizer-3.3.0"
;zend_extension_ts="f:\ServerCore\lib\ZendExtensionManager.dll"
zend_extension_ts="F:\ServerCore\PHP5\ext\php_xdebug-2.0.4-5.2.8.dll"
才成功,其他写法不太行

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template