- Install PHP
brew install php
- Install Xdebug
pecl install xdebug
- Add this config on the end of file
php.ini
[xdebug]
zend_extension="xdebug.so"
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
-
Restart PHP server
brew services restart php
-
Test it in PhpStorm
-
Links