Chinaunix首页 | 论坛 | 博客
  • 博客访问: 380425
  • 博文数量: 46
  • 博客积分: 1476
  • 博客等级: 上尉
  • 技术积分: 428
  • 用 户 组: 普通用户
  • 注册时间: 2006-01-19 13:17
文章分类

全部博文(46)

文章存档

2015年(8)

2014年(20)

2013年(7)

2012年(4)

2011年(1)

2010年(2)

2009年(1)

2008年(2)

2006年(1)

我的朋友

分类: PHP

2015-04-04 13:29:03

首先 把 Aptana 升级 到最新版。

1. 到 下载 XDebug, 按PHP版本 、 线程安全(TS) thread safe类型、操作系统类型找到要下载的相应     XDebug版本

2. 把下载的文件放到 PHP安装目录下的 ext文件夹中。

3.编辑 php.ini

[XDebug]
; Only Zend OR (!) XDebug
zend_extension="X:/ wamp/php\ext\php_xdebug.dll"
;是否开启自动跟踪
xdebug.auto_trace= On
;是否开启异常跟踪
xdebug.show_exception_trace= On
;是否开启远程调试自动启动
xdebug.remote_autostart= On
;是否开启远程调试
xdebug.remote_enable= On
;允许调试的客户端IP
xdebug.remote_host=localhost
;远程调试的端口(默认9000)
xdebug.remote_port=9000
;调试插件dbgp
xdebug.remote_handler=dbgp
;是否收集变量
xdebug.collect_vars= On
;是否收集返回值
xdebug.collect_return= On
;是否收集参数
xdebug.collect_params= On
;跟踪输出路径
xdebug.trace_output_dir="d:\xdebug"
;是否开启调试内容
xdebug.profiler_enable=On
;调试输出路径
xdebug.profiler_output_dir="d:\xdebug"
4. 在Aptana 中 ,点 Window-> Preferences->PHP Interprete, 点 “Add”

5. 在Aptana 中 ,点 Window-> Preferences->PHP->Debug

选中 Installed Debugger 中的 “XDebug” ,点 “Configure”

6. 在Aptana 中 ,点 Window-> Preferences->Aptana Studio->Web Server, 点“New”

7. 在Aptana 中 ,点 Run-> Debug Configuration, 在 PHP Web Page上 点右键 ,选 “New”

8.在Aptana 中 ,点 Run-> Debug As-> PHP Web Page 开始调试

阅读(2000) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~