`

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脚本下断点调试(?)
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics