PDT下配置XDebug
时间:2010-05-01 来源:octans
- PDT - 用途:Provides a PHP Development Tools framework for the Eclipse platform - 地址:http://www.eclipse.org/pdt/
- eclipse - 用途:... - 地址:http://www.eclipse.org
- 参考 1. XDebug Support In PDT 2.0: http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pdf 2. wampserver下如何配置xdebug: Enabling XDebug with WAMP Posted by:dcizal http://www.wampserver.com/phorum/read.php?2,43057 3. PHP For Windows: Which version do I choose? VC9 x86 Non Thread Safe,VC9 x86 Thread Safe, VC6 x86 Non Thread Safe, VC6 x86 Thread Safe http://windows.php.net/download/
- 安装配置过程 1. 安装eclipse 2. 安装PDT 3. 安装xdebug 3.1 下载xdebug 3.1.1 下载地址:http://xdebug.org/download.php 3.1.2 选择版本并下载:根据自己安装的php版本信息来确定,运行phpinfo(),我看到自己的php信息为php version 5.3.0; Zend Extension Build: API220090626,TS,VC6; Thread Safety:enabled; 所以我选择Xdebug 2.0.5下的5.3 VC6 (32 bit)版本,下载下来的xdebug全程为php_xdebug-2.0.5-5.3-vc6.dll 3.1.3 安装:将hp_xdebug-2.0.5-5.3-vc6.dll放在php的ext目录下。我使用的是wampserver 2.0, 所以放在了目录c:/wamp/bin/php/php5.3.0/ext/下 4. 配置xdebug 4.1 编辑php.ini文件:在此文件最底部添加xdebug的配置信息如下,
[xdebug] |
xdebug
xdebug support enabled
Version 2.0.5
Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $ GDB - GNU Debugger protocol $Revision: 1.87 $ PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $ Directive Local Value Master Value xdebug.auto_trace Off Off xdebug.collect_includes On On xdebug.collect_params 0 0 xdebug.collect_return Off ... ... |
- 后记 我的环境是Windows Vista, WampServer2.0(PHP 5.3 + Apache 2.2.1 + Mysql5.1.36), Eclipse 3.5, PDT 2; 按照之前我的安装方法来安装配置完Xdebug 2.0.5后,在调试php页面时,经常引起apache垮掉;之后我又下载了Xdebug 2.1.0beta3,Release date: 2010-02-27替换掉Xdebug 2.0.5后,再没有出现apache垮掉的现象