用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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM