PHP X-Debug setup
Just follow this document
https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html
You might need to restart PHP so you can do this using the following command (command will change according the PHP version you have).
brew services restart php@7.1