Can't Install Xdebug On Mac With Homebrew
Answer : Add this repository: https://github.com/josegonzalez/homebrew-php#readme Then use brew install php54-xdebug for PHP 5.4 Or brew install php53-xdebug for PHP 5.3 Or brew install php55-xdebug for PHP 5.5 // Working as of 2021 As homebrew removed the extra php repository containing a version with xdebug already installed, you have to install it manually. Summary: brew install <php version> for php update your path pecl install xdebug for xdebug Full example: # update homebrew brew update # install a version of php, e.g. 7.0 brew install php@7.0 # now they tell you how to link it, in my case echo 'export PATH="/usr/local/opt/php@7.0/bin:$PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/php@7.0/sbin:$PATH"' >> ~/.bash_profile # reload the file with the updated path, so we can use pecl source ~/.bash_profile # check that the path is to the correct php executable, # and pecl is available whi...