Home  >  Article  >  Backend Development  >  xampp组合chrome和eclipse调试php的配置步骤

xampp组合chrome和eclipse调试php的配置步骤

WBOY
WBOYOriginal
2016-06-13 12:11:08820browse

xampp结合chrome和eclipse调试php的配置步骤
1.安装xampp后,打开php.ini文件,取消最后面的[XDebug]的注释,特别注意 一定要打开元调试功能:xdebug.remote_enable = 1,重启xampp的apache服务。



2.安装chrone浏览器的php调试插件:xdebug heler。


3.在eclipse-php-helios-SR2-win32 的首选项 中设置 php excutables,指向xampp中的php安装路径,且选择xdebug作为调试器。




4.在debug处选择xdebug,且php excutables 选择上一步设置的执行环境即可。配置installed Debugger 里面的xdebug,一定要

将Accept remote session 设置loaclhost 或者any,否则 eclipse里面是不会停在断点处的。





5.在eclipse中设置断点,然后chrone 浏览器中发起调试。







注意事项

  • 在chrome浏览器发起调试时,需要选择Debug模式
  • 如果不需要每次断点在第一行停留时,可取消"停在第一行” 选项。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:【php】本土开发环境的部署与helloworldNext article:Yii框架在主页已登录,在其他页面检测不出登录

Related articles

See more