Welkom bij Bandhosting.nl,
hosting en webdevelopment.

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 php@7.1 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 (/usr/local/etc/php/7.1/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.