Installing xdebug in homebrew after the latest homebrew/php change
On the 31st of march, the homebrew-php library got deprecated and archived. A few php modules have been bundled with the php
brew install email@example.com command, but not all.
To install xdebug, you will need to do the following:
pecl install xdebug
remove the following line that was inserted by the pecl installer from your php.ini (
Create a new file in the php conf.d (
/usr/local/etc/php/7.1/conf.d/ext-xdebug.ini) folder, with the following content:
Now, if you execute
php -m it should list xdebug as installed.