Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
`ext-xdebug.ini` for use with Laravel Valet.
zend_extension=/usr/local/Cellar/php/8.0.5/pecl/20200930/xdebug.so
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.discover_client_host=true
xdebug.default.idekey=PHPSTORM
@unrivaledcreations
Copy link
Author

unrivaledcreations commented May 3, 2021

To install:

  1. pecl install xdebug to install.
  2. php --ini to locate php.ini.
  3. nano php.ini to remove the zend_extension line added by the xdebug installer.
  4. cd {conf.d} to visit the conf.d directory for php.
  5. curl -o ext-xdebug.ini https://gist.githubusercontent.com/unrivaledcreations/e637998fc8c7a96342f2a596b6ef00ca/raw to download this file into the conf.d directory.
  6. nano ext-xdebug.ini to update the zend_extension parameter; it must match the install location of xdebug.so.
  7. valet restart to make it take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment