Linux Centos 5.5 x86
i tried to find what is the problem but couldnt. can you help?
Please attach the exception body.
This exception mostly occurs when XDebug ends up with some error and mostly we can't do anything with that, because it disconnects NetBeans. You can provide us more info, such as source code, where the problem occurs, your breakpoints settings, debugging workflow, xdebug xml output, etc. Until that I can't suggest you any advice.
I was experiencing the same issue running Netbeans 7.2.1, MAMP 2.1.1, PHP 5.4.4 and xdebug 2.2.0.
As mentioned by obrejla, it is an xdebug issue.
Rebuilding xdebug from source (https://github.com/derickr/xdebug) - v2.3dev - seems to resolve the issue on my setup. I can debug, step in, out & over, inspect variables etc without encountering the "Socket Exception" error.