用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