PHP调试环境配置 xdebug配置

下载集成调试开发环境的eclipse:http://www.eclipse.org/pdt/downloads/

 PHP调试环境配置 xdebug配置_第1张图片

配置php.ini文件

//一定是绝对路径

zend_extension = "F:/php/php-5.3.8/ext/php_xdebug-2.2.2-5.3-vc9.dll"

;extension = php_xdebug-2.2.2-5.3-vc9.dll

[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

xdebug.remote_enable=true

xdebug.remote_host=127.0.0.1  ; if debugging on remote server,

                              ; put client IP here

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=0

xdebug.profiler_output_dir="../log"

如果不能调试,或者参数有误,到xdebug上去检查phpinfo()页面信息

http://www.xdebug.org/wizard.php

 PHP调试环境配置 xdebug配置_第2张图片

 

你可能感兴趣的:(PHP调试环境配置 xdebug配置)