How to debug with PHPSTORM using XDEBUG in Mac

Problem – Zero-configuration popup was not working for the incoming connections.

What I followed

Flushed all DNS Cache using Cleanmymac application

Cleared all chrome cache

;XDEBUG settings in php.ini file

zend_extension="/usr/local/Cellar/php/7.4.4/pecl/20190902/xdebug.so"
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_host=localhostproduction servers
xdebug.remote_port=9004 ;apply same port 9004 at Preferences | Languages & Frameworks | PHP | Debug
xdebug.idekey=PHPSTORM

Start Listening to PHP Debug Connection (phone type icon): you can find it under Run

Go to the website and just refresh the page and finally to popup should appear.

Leave a comment