I tried several times to install xdebug on my virtual box and it never worked out right. Netbeans started the script in the browser but did not connect to the server, so it was not possible to use any functionality, like breakpoints etc.
The standard installation procedure on Ubuntu server with apt-get install php5-xdebug went fine, but the result was not.
All You have to do is copy the html source from your phpinfo(); output. You will find a tutorial on how to install Xdebug with the current version on your server. With doing so, Xdebug found its way on my server, but was not activated properly.
I successfully activated it via
apt-get install php5-xdebug
The installation went fine again, but – somehow – it does now, what it should. It seems that both ways of installation missing something the other way brought in and completed each other.
Netbeans and Xdebug are now working great together and it is unbelievable helpful.
If your installation fails over and over again, like mine did, give it a try to install it like i described. maybe it will help you, too. 🙂