Skip to content

Instantly share code, notes, and snippets.

@iradofurioso
Last active November 13, 2021 16:10
Show Gist options
  • Save iradofurioso/ae4071bf17f09bf0e1c9a61a5f5fd1de to your computer and use it in GitHub Desktop.
Save iradofurioso/ae4071bf17f09bf0e1c9a61a5f5fd1de to your computer and use it in GitHub Desktop.
Installing XDEBUG in PHP 7.4 - MacOS - brew
$ pecl install xdebug
$ vim /usr/local/etc/php/7.2/php.ini
Remove the line
zend_extension=xdebug.so
$ vim /usr/local/etc/php/7.4/conf.d/ext-xdebug.ini
Add the line:
zend_extension="/usr/local/Cellar/php/7.4.4/pecl/20190902/xdebug.so
The correct path to add here is provided at the end of pecl installation.
Restart Apache
@blondie63
Copy link

correct line is:
zend_extension="/usr/local/Cellar/php/7.4.4/pecl/20190902/xdebug.so"

one " missing

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