Xdebug remote debugging support for PHP

I tried to enable xdebug remote debugging support for my Vaprobashed box and it turned out ok so I want to share my code with you.

As after install of php5 there already exists /etc/php5/mods-available/xdebug.ini with some options in it I first check for existence of options I'm trying to add. I hope it's a good way to be consistent with possible changes user has already made to his box.

All options will be added only if there exists xdebug.so extension in /usr/lib/php5/


I tested this configuration with Laravel 4.1 and Netbeans 7.4 on my local machine.
My shared folder config is
```
config.vm.synced_folder "~/www", "/var/www" 
```
that means I mount ~/www folder on my host to /var/www on the Vagrant box.

I created vhost for my test project:
```
vhost -s /var/www/testproject/public -d testproject.dev
```
and in Netbeans I needed to go to Project Properties -> Run Configuration -> Advanced and add path mapping:
<table>
<tr>
<td>Server Path</td>
<td>Project Path</td>
</tr>

<tr>
<td>/var/www/testproject</td>
<td>/home/myusername/www/tesproject</td>
</tr>
</table>


I will be glad for any questions or suggestions!