Skip to content

Instantly share code, notes, and snippets.

@unrivaledcreations
Created May 3, 2021 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unrivaledcreations/e637998fc8c7a96342f2a596b6ef00ca to your computer and use it in GitHub Desktop.
Save unrivaledcreations/e637998fc8c7a96342f2a596b6ef00ca to your computer and use it in GitHub Desktop.
`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

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