問題描述:
使用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