loading...

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

Collapse
morozovalexander profile image
Alexander Morozov

Hmm, it seems like it's not working on MacOS. Project start is ok, but no debug. I'l try to find correct solution for mac

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! 🙏

Collapse
yaronuliel profile image
Yaron Uliel

After waisting a few hours - I think it is also worth mentioning that you must also have xdebug.remote_connect_back set to 0 - otherwise it won't initiate the connection from server php-fpm