脚本宝典收集整理的这篇文章主要介绍了php – 等待连接到XDEBUG的Netbeans,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
Debugging IDE’s port connection to XDebug: “Waiting to Connect”
netbeans shows “Waiting For Connection (netbeans-xdebug)”
但它并没有解决我的问题.
似乎Netbeans连接到xdebug,因为在等待连接时,对Web服务器[apache2]的所有请求都被阻止.端口[9001]似乎正在使用中:
roxy@Pixy011 ~ $sudo nmap -sS -O 127.0.0.1 Starting Nmap 6.00 ( http://nmap.org ) at 2013-11-28 20:48 EST Nmap scan report for localhost (127.0.0.1) Host is up (0.000029s latency). Not shown: 990 closed ports PORT statE SERVICE 22/tcp oPEn ssh 139/tcp open netBIOS-ssn 443/tcp open https 445/tcp open microsoft-ds 631/tcp open ipp 902/tcp open iss-realsecure 3306/tcp open MysqL 8080/tcp open http-Proxy 8081/tcp open blackice-icecap 9001/tcp open tor-orport <---- Opened by java
xdebug.ini:[我已经确认它是在PHPinfo()中加载的]
zend_extension=/usr/lib/PHP5/20100525/xdebug.so xdebug.remote_autostart=1 xdebug.remote_enable=1 xdebug.remote_handler="dbgp" xdebug.remote_mode="req" xdebug.remote_host="127.0.0.1" xdebug.remote_port=9001 xdebug.idekey="netbeans-xdebug"
Netbeans配置:
Debugger port: 9001 Session ID: netbeans-xdebug Stop at First line: Checked All other options are unchecked
项目属性:
Host: 127.0.0.1 Port: 9001
编辑:
我注意到Netbeans没有将XDEBUG_SESSION_STOP附加到URL.我不认为这与该问题有关,因为Netbeans仅在我关闭调试会话后打开页面.
我也禁用了SELinux
5. sudo service apache2 restart
这样做之后我可以再次调试PHP.
以上是脚本宝典为你收集整理的php – 等待连接到XDEBUG的Netbeans全部内容,希望文章能够帮你解决php – 等待连接到XDEBUG的Netbeans所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。