win7+xampp-win32-1.8.2-2-VC9+eclipse-jee-indigo-SR2-win32-x86_64.zip

http://pjdong1990.iteye.com/blog/1610305

http://pan.baidu.com/share/link?shareid=2741342437&uk=571615461&fid=943296216

搭建 Xampp + Eclipse PDT + XDebug 的PHP调试环境

,如果你机器没有JRE,来JAVA的官方网站下载JRE,安装,因为Eclipse需要JRE才能运行。

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

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

[XDebug]
zend_extension = "E:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 1
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "E:\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.remote_port = 19000
xdebug.remote_autostart = 1
xdebug.overload_var_dump = 1
xdebug.var_display_max_children = 1024
xdebug.var_display_max_data = 2048
xdebug.var_display_max_depth = 10
xdebug.auto_trace = 1
xdebug.show_exception_trace = 1
xdebug.collect_vars = 1
xdebug.collect_return = 1
xdebug.collect_params = 1

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

注意:svn接口换成svnkit的,JNI接口不稳定。

最新文章

  1. ASP.NET五步打包下载Zip文件
  2. AXIS 调用 webservice服务时传递 服务器验证需要的用户名密码
  3. sql中datetime 和 timestamp
  4. Linux 杂记
  5. [转]Amazon DynamoDB – a Fast and Scalable NoSQL Database Service Designed for Internet Scale Applications
  6. window配置nginx+php+mysql
  7. Application.CommonAppDataPath的路径
  8. 【HDU 5381】 The sum of gcd (子区间的xx和,离线)
  9. Java中类的初始化
  10. 某网站经纬度Decode
  11. jquery.range.js左右滑动选取数值插件,动态改变进度。
  12. 201521123059 《Java程序设计》第二周学习总结
  13. 原生js,从面向过程的方法到面向对象的方法,写个选项卡练练手
  14. SEO需要掌握的基础知识
  15. 多线程之interrupt
  16. 5、AngularJS 直接绑定显示html ($sce、$sanitize服务)
  17. HDU 2176:取(m堆)石子游戏(Nim博弈)
  18. constructor C++ example
  19. CF28D Don't fear, DravDe is kind
  20. openssl & openssh

热门文章

  1. css ie hack整理
  2. Cannot modify header information - headers already sent by
  3. (转)SVN源码管理(上&下)
  4. JAVA泛型那些事儿
  5. awk命令简单学习
  6. 修复 status 为 unusable 的 index
  7. java之NIO编程
  8. C# 截取字符串,区分中英文情况
  9. GitHub——如何更新已经fork的代码
  10. 【行为型】Command模式