ENABLE: sudo phpenmod xdebug && sudo service apache2 restart
DISABLE: sudo phpdismod xdebug && sudo service apache2 restart
From within the server (vagrant ssh
) run this command
export XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=10.0.2.2 remote_connect_back=0"
Then set up your server as you normally would in PHPStorm
PHPStorm -> Settings -> Servers