DEV Community

Discussion on: Docker, PHPStorm and Xdebug, The definitive guide

Collapse
 
morozovalexander profile image
Alexander Morozov

Ok, I found a correct solution for mac. You should use docker.for.mac.localhost instead 192.168.1.102 in .env file for remote_host. And you must enable DBGp proxy in phpstorm setting. Use IDE key: PHPSTORM, Host: docker.for.mac.localhost.
And I have xDebug configured locally on mac, and use 9002 port for debug instead 9001.

Collapse
 
stanislas profile image
Stanislas

Thank you so much! 🙏