1 min read
How to install XDebug with PHP 5.6 on MacOS 10.12
First, install HomeBrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Use HomeBrew to install autoconf and XDebug:
brew tap homebrew/homebrew-phpbrew install autoconfbrew install php56-xdebugOptionally, install xdebug-osx to enable toggling of XDebug:
brew install xdebug-osxNext, update your php.ini file with these lines:
[Xdebug]zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so"xdebug.remote_enable=1xdebug.profiler_enable=1xdebug.profiler_output_dir="<AMP home\tmp>"You should be good to go now. You can confirm by checking your config with the XDebug Config Checker.