大佬教程收集整理的这篇文章主要介绍了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,请注明来意。