stephen-makrogianni
3/5/2020 - 8:14 PM

xdebug

Easily turn on and off xdebug

ENABLE: sudo phpenmod xdebug && sudo service apache2 restart
DISABLE: sudo phpdismod xdebug && sudo service apache2 restart

Want to get xdebug working on the CLI? Follow these helpful tips

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