- Zend Studio安装,配置;
- Xdebug配置;
Zend Studio安装,配置
a.下载工具:http://pan.baidu.com/s/1c2yyINA
包括ZendStudio-13.5.0-win32.win32.x86_64、和xdebug扩展库。
b.配置
首先,将Zend studio的浏览器修改为Firefox,因我的系统默认浏览器为Firefox,因此我的配置如下:
其次,新建一个调试的server,如下图:
此时,通过Debug PHP web application可以打开Firefox,但是不能断点和单步调试,需要接下来的XDebug配置。
Xdebug配置
将php_xdebug-2.4.1-5.5-vc11-nts-x86_64.dll拷贝到php\ext目录,修改php.ini,在配置文件末尾增加如下的内容:
[XDebug]
;调试功能模块儿
;extension=php_xdebug-2.2.5-5.3-vc9.dll
zend_extension ="D:/tools/xampp/php/ext/php_xdebug.dll"
xdebug.remote_handler=dbgp
;开启远程调试
xdebug.remote_enable = On
;远程主机
xdebug.remote_host=127.0.0.1
;主机端口
xdebug.remote_port=9000
;开启自动跟踪
xdebug.auto_trace = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart = Off
;收集变量
xdebug.collect_vars = On
;收集返回值
xdebug.collect_return = On
;收集参数
xdebug.collect_params = 0
;临时跟踪信息输出
xdebug.trace_output_dir="D:/tools/xampp/tmp"
;显示局部变量
xdebug.show_local_vars = On
xdebug.profiler_enable = On
xdebug.profiler_output_dir ="D:/tools/xampp/tmp"
xdebug.trace_enable_trigger =On
;xdebug.idekey = "ECLIPSE_DBGP"
配置中的路径是由于本地采用的XAMP搭建的APACHE服务器,放在了D:/tools/xampp目录,这个目录需要大家自行修改。
希望会有帮助,以后可能会来翻翻看,有错的话,还请大家指正。