For those using a different version of php type in terminal
-> brew search xdebug
and select your version.
after installing your version of xdebug, you must activate it by placing the installed extension path in the php.ini file.
type phpinfo () and find " Loaded configuration file ".
Open the file shown for the "Loaded configuration file" (mine is /etc/php.ini ) and paste the extension path anywhere.
for me, the installed xdebug extension path is " /usr/local/Cellar/php56-xdebug/2.5.1/xdebug.so "
so I inserted { zend_extension = "/usr/local/Cellar/php56-xdebug/2.5.1/xdebug.so "}.
restart the apache server and check phpinfo () on xdebug , that's all.
source share