PDT安装笔记

(考证中,未稳定)

 

一、安装PDT

http://www.eclipse.org/pdt/

 

二、安装Apache httpd

http://httpd.apache.org/

 

三、安装PHP

http://www.php.net/

注意区分nts和ts版——我的运行时dll是php5ts.dll,线程安全,

专门用于httpd。

 

四、安装xdebug的dll

http://xdebug.org/

 

五、修改php.ini

 

xdebug 必须使用 zend_extension_ts 或者 zend_extension 来标明它是zend的扩展

根据 PHP 版本,zend_extension 指令可以是以下之一:

zend_extension (non ZTS, non debug build)

zend_extension_ts ( ZTS, non debug build)

zend_extension_debug (non ZTS, debug build)

zend_extension_debug_ts ( ZTS, debug build)

 
我的php.ini文件是在结尾加上这些内容(最好全部使用绝对路径)
 
[Xdebug]
zend_extension_ts="D:\ugame\bin\php5\ext\php_xdebug-2.1.1-5.2-vc6.dll"
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.trace_output_dir="D:\ugame\bin\www\xdebug"
xdebug.profiler_enable=1
xdebug.profiler_output_dir="D:\ugame\bin\www\xdebug"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
 
这两个开关不知道是否必须 
output_buffering = Off
implicit_flush = On
 
六、修改PDT的预设选项
根据上面的 remote_port设置端口号
然后重启httpd服务器,对php脚本下断点调试(?)
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值