两个月前还用得好好的XDebug,昨天忽然间就不能用了.
在Eclipse的XDebug的进度条会停在57%,显示"waiting for XDebug session".
在Google了一天之后终于找到一篇文章的一条评论中提到这个问题的解决方法:Link
上面写道:
I had problems getting xdebug to work and interact properly with Eclipse/PDT. I kept getting stuck at 57% with the message "waiting for XDebug session" in the progress window of Eclipse/PDT. Xdebug was configured to use port 9000.
It turns out the Checkpoint VPN-1 SecureClient, which is installed on my machine (a WinXP SP3 Windows box) also uses port 9000 and runs as a service. Therefore Eclipse/PDT could never open port 9000 for communication with the xdebug server. I noticed this using netstat -a -b, for those unfamiliar with how to see open ports on windows.
I ended up changing the port used by xdebug to something completely random and assigning that same port to Eclipse/PDT in the PHP -> Debug -> Installed Debuggers of the Preferences menu.
I hope this can help anyone else who is stuck with this very annoying problem.
我把我的XDebug端口改成19000之后,XDebug就能正常使用了~~
看来是因为我装了SVN的问题.
呵呵,老外就是强啊.
在浪费了我1天时间之后,我又可以继续编程了~~
本文介绍了一个关于XDebug无法与Eclipse建立连接的问题及其解决方案。问题表现为Eclipse的XDebug进度条停在57%,并提示“等待XDebug会话”。经过排查发现,原因是CheckPoint VPN-1 Secure Client占用了XDebug默认使用的9000端口。通过更改XDebug的端口设置,问题得以解决。
1323

被折叠的 条评论
为什么被折叠?



