- Install Xdebug https://xdebug.org/docs/install#pecl.
pecl install xdebug - Check php --version. Make sure Xdebug info is there.
3. Locate your php by typing which php.
4. In your phpstorm, type in command + , then type php under languages and frameworks click ...
5. Copy the path /opt/homebrew/bin/php then paste it on PHP executable. Apply changes.