用Eclipse+xdebug调试PHP总是在首行自动断点解决方法

问题描述:

使用Eclipse+PDT+xdebug调试PHP程序时,总是在程序的第一行(首行)自动断点,不方便调试。

 

解决方法:

分别在下面3个位置配置,取消 Break at First Line

  • Window -> Prefrences -> PHP -> Debug
  • Run -> Debug Configurations -> PHP Web Application -> <要调试的项> -> 右边选择Debugger标签
  • Project -> Properties -> PHP Debug

设置完成后如果不行就重启Eclipse。

 

参考资料:

http://stackoverflow.com/questions/9071397/eclipse-and-zend-debugger-breaks-in-the-first-line-always-despite-having-unchec

http://stackoverflow.com/questions/11324156/prevent-xdebug-to-break-at-first-line-of-index-file

posted on 2016-04-10 13:35  雷锋123  阅读(2135)  评论(0编辑  收藏  举报

导航