ZendStudio调试配置(XDebug)

当前配置环境:

Win7 64bit

ZendStudio10.6.2(破解文件:http://download.csdn.net/download/xinzheng_wang/7643419

Apache2.2.25(win32)

php-5.3.28 (线程安全,下载地址:http://windows.php.net/download/

1)XDebug下载

XDebug可以到 http://xdebug.org/download.php 下载,可点击custom installation instructions通过复制粘贴phpinfo()输出的内容得到需要下载的版本。

2)打开php.ini并在文件的最后增加如下配置,同时要重新启动Apache

[html]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. [XDebug]  
  2. ;调试功能模块儿  
  3. ;extension=php_xdebug-2.2.5-5.3-vc9.dll  
  4. zend_extension ="D:/PHP/php-5.3.28/ext/php_xdebug-2.2.5-5.3-vc9.dll"  
  5. xdebug.remote_handler=dbgp  
  6. ;开启远程调试  
  7. xdebug.remote_enable = On  
  8. ;远程主机  
  9. xdebug.remote_host=localhost  
  10. ;主机端口  
  11. xdebug.remote_port=9000  
  12. ;开启自动跟踪  
  13. xdebug.auto_trace = On  
  14. ;开启异常跟踪  
  15. xdebug.show_exception_trace = On  
  16. ;开启远程调试自动启动  
  17. xdebug.remote_autostart = On  
  18. ;收集变量   
  19. xdebug.collect_vars = On  
  20. ;收集返回值   
  21. xdebug.collect_return = On  
  22. ;收集参数   
  23. xdebug.collect_params = On  
  24. ;临时跟踪信息输出  
  25. ;xdebug.trace_output_dir="d:/PHP/php-5.3.28/temp"  
  26. ;显示局部变量  
  27. xdebug.show_local_vars = On  
  28. xdebug.profiler_enable = On  
  29. ;xdebug.profiler_output_dir ="d:/PHP/php-5.3.28/temp"  
  30. xdebug.trace_enable_trigger =On  

3)Window->Preferences->PHP Executable->Add如下:

4)设为Default如下:

5)Debug设置如下:

6)新Local PHP Project并增加断点如下:

7)右键点击工程,点击菜单Properties设置如下:

8)Debug Configurations设置如下:

到此为止即可:Debug As PHP CLI Application和PHP Web Application进行断点调试了。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值