Netbeans won\'t connect to xdebug. I\'ve tried suggestions from the following posts:
Debugging IDE's port connection to XDebug: "Waiting to Connect"
Had same issue:
$ netstat | grep 9000
...
tcp6 1 0 localhost:9000 localhost:37486 CLOSE_WAIT
Solution: Restart NetBeans. There was running a dead Process waiting for connections.
Here Netbeans with a running debug session. Note the CLOSE_WAIT and TIME_WAIT.
tcp6 0 0 localhost:9000 localhost:38166 TIME_WAIT