xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
xdebug.idekey=vagrant
xdebug.remote_host=10.0.2.2
The remote_host
is the IDE's host ip from the vagrant box. 10.0.2.2
seems to be the default...i think, works for me.
First off ++ for taking the time to document this.
According to the xdebug documentation http://xdebug.org/docs/all_settings
When xdebug.remote_connect_back is enabled xdebug.remote_host is ignored. remote_connect_back attempts to connect back to the ipaddress of any http request.
** Please note that there is no filter available, and anybody who can connect to the webserver will then be able to start a debugging session, even if their address does not match xdebug.remote_host. **
Once more, thanks for taking the time to write this in a gist and know that you are an awesome human being.