自升级到Mac OS Sierra以来,Xdebug无法正常工作

Since I upgraded to mac os Sierra, the xdebug extension doesn't work.

  • When I'm doing php -v, the xdebug is shown as installed.
  • When i'm going to the extension library ( /usr/lib/php/extensions/no-debug-non-zts-20131226 ), the xdebug.so file is there.
  • When I'm opening the phpinfo(), the xdebug doesn't being shown.

i'm using php v5.6.28 and xdebug that is installed is v2.3.3 and trying to run this on phpstrom.

Before the upgrade everything worked fine.

I had the same problem, in my case, it was because install xdebug using brew, and libraries do not have the right path. So just need to copy xdebug.so in path referenced in php.ini

cp /usr/local/Cellar/php56-xdebug/2.5.4/xdebug.so /usr/lib/php/extensions/no-debug-non-zts-20131226/