3 回答

TA貢獻(xiàn)1876條經(jīng)驗(yàn) 獲得超7個(gè)贊
1.安裝xampp后,打開(kāi)php.ini文件,取消最后面的[XDebug]的注釋,特別注意 一定要打開(kāi)元調(diào)試功能:xdebug.remote_enable = 1,重啟xampp的apache服務(wù)。
2.安裝chrone瀏覽器的php調(diào)試插件:xdebug heler。
3.在eclipse-php-helios-SR2-win32 的首選項(xiàng) 中設(shè)置 php excutables,指向xampp中的php安裝路徑,且選擇xdebug作為調(diào)試器。
4.在debug處選擇xdebug,且php excutables 選擇上一步設(shè)置的執(zhí)行環(huán)境即可。配置installed Debugger 里面的xdebug,一定要
將Accept remote session 設(shè)置loaclhost 或者any,否則 eclipse里面是不會(huì)停在斷點(diǎn)處的。
5.在eclipse中設(shè)置斷點(diǎn),然后chrone 瀏覽器中發(fā)起調(diào)試。
- 3 回答
- 0 關(guān)注
- 662 瀏覽
添加回答
舉報(bào)