Chinaunix首页 | 论坛 | 博客
  • 博客访问: 238472
  • 博文数量: 62
  • 博客积分: 1350
  • 博客等级: 中尉
  • 技术积分: 457
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-13 09:56
文章分类

全部博文(62)

文章存档

2016年(1)

2013年(9)

2012年(18)

2011年(31)

2010年(1)

2006年(2)

分类: PHP

2013-10-25 17:01:43

1,如果你机器没有,来,安装,因为Eclipse需要JRE才能运行。

2,,直接下载下面的那个3.0.x版本的All in one windows安装包。直接运行eclipse就可以启动。

3,这个集成的PHP+MySql运行环境。

4,在c:\xampp\php\php.ini文件里面去掉XDebug的注释,并把所有0改为1
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 1
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"

5,Eclipse的配置。

依次打开Windows -> Preferences -> PHP ->PHP Executables 加入XDebug

依次打开Windows -> Preferences -> PHP ->Debug,配置如下

然后在debug configuration 里面配置如下:


下面调试成功后的界面如下所示:



如果以上不能解决问题,有可能是网上说的端口被占用的原因,网上给出的解决方案是:

1)修改php.ini

     xdebug.remote_port=9001                         ;反向连接zend studio使用的端口

2) 修改zend studio 的XDebug反向链接端口

      Window -> Preferences -> PHP -> Debug -> Installed Debuggers




阅读(6528) | 评论(0) | 转发(0) |
1

上一篇:SNMP中的MIB是什么?

下一篇:PHP的错误类型

给主人留下些什么吧!~~