- Add
xdebug.remote_autostart = 1
to/etc/php/7.2/mods-available/xdebug.ini
- Activate xDebug for CLI
sudo ln -s /etc/php/7.2/mods-available/xdebug.ini /etc/php/7.2/cli/conf.d/20-xdebug.ini
- Add Remote CLI Interpreter (vagrant)
- Create 'Run/Debug Configurations' for 'PHP Remote Debug'