Skip to content

Instantly share code, notes, and snippets.

@dennyweiss
Last active November 9, 2018 08:39
Show Gist options
  • Save dennyweiss/0a848cfa4dc3bc6c2ae689ce0d83bfe7 to your computer and use it in GitHub Desktop.
Save dennyweiss/0a848cfa4dc3bc6c2ae689ce0d83bfe7 to your computer and use it in GitHub Desktop.
Laravel Homestead 7 – xdebug `/etc/php/7.2/mods-available/xdebug.ini`

Tasks

  1. Add xdebug.remote_autostart = 1 to /etc/php/7.2/mods-available/xdebug.ini
  2. 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
  1. Add Remote CLI Interpreter (vagrant)
  2. Create 'Run/Debug Configurations' for 'PHP Remote Debug'
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.max_nesting_level = 512
xdebug.remote_autostart = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment