简体   繁体   English

使用Joomla调试的Netbeans php Xdebug套接字异常

[英]Netbeans php Xdebug Socket Exception with Joomla debugging

My system 我的系统

PHP Version 5.4.0-1build1~ppa1~oneiric
Xdebug v2.2.0rc1, Copyright (c) 2002-2012, by Derick Rethans
Apache/2.2.20 (Ubuntu)

When I debug a Joomla up, coming near to the error that I wish to spot on, debugger breaks and gives me Socket Exception problem, with follownig stack trace. 当我调试Joomla时,接近我希望发现的错误,调试器中断并给我Socket Exception问题,并显示了跟踪堆栈。

Please help me, I am going crazy. 请帮助我,我快疯了。

I was not able to downgrade xdebug, and I have tried on my machine with - another browser, - another Java build, - a new userdir for netbeans ( deleting completely the older one , - recreating the project putting also the netbeans directory under another path ( this because I needed to put files under www-data properties) 我无法降级xdebug,并且尝试在我的计算机上使用-另一个浏览器-另一个Java构建-面向netbeans的新用户目录(完全删除了较旧的用户目录,-重新创建项目,并将netbeans目录也置于另一路径下(这是因为我需要将文件放在www-data属性下)

 INFO [org.netbeans.modules.php.dbgp.DebugSession]
java.net.SocketException: Pipe interrotta
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:141)
at org.netbeans.modules.php.dbgp.packets.DbgpCommand.send(DbgpCommand.java:90)
at org.netbeans.modules.php.dbgp.DebugSession.sendCommands(DebugSession.java:211)
 [catch] at org.netbeans.modules.php.dbgp.DebugSession.run(DebugSession.java:143)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)

There were a few bugs in the Xdebug 2.2.0RC1 release with debugging. Xdebug 2.2.0RC1发行版中存在一些带有调试功能的错误。 Those should all be fixed with yesterday's release of Xdebug 2.2.0. 这些都应该在昨天发布的Xdebug 2.2.0中修复。 If you can still reproduce it, please file bug reports at http://bugs.xdebug.org . 如果仍然可以重现它,请在http://bugs.xdebug.org上提交错误报告。

I have tried all following: - remove all watches ( ooops I did not have any one ! ) - use a new fresh userdir with netbeans but nothing - upgrade xdebug to 2.2.0 - downgrade php version to 5.3.10 ( but I was not able ) - reinstall completely apache and LAMP ( but some configuration were not completely deleted, so if you want to do it, be sure of purging and configuration file of apache or php related ) 我尝试了以下所有操作:-删除所有手表(糟糕,我没有任何人!)-使用带有netbeans的新用户目录,但什么都没有-将xdebug升级到2.2.0-将php版本降级到5.3.10(但是我没有能够)-完全重新安装apache和LAMP(但是某些配置并未完全删除,因此,如果要执行此操作,请确保清除与apache或php相关的配置文件)

At the end I did a fresh ubuntu installation, and now it works fine. 最后,我做了一个全新的ubuntu安装,现在工作正常。

Hope error log in xdebug can improve to take in account and solve this kind of error without uninstalling all! 希望xdebug中的错误日志可以改进以考虑并解决这种错误,而无需全部卸载!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM