Docker beta for mac and xdebug not working

xdebug was working with docker toolbox but doesn't work with docker beta.

 

How should my settings look?

My website is accessible at www.site.com:881/

docker-machine ip = 192.168.99.100

docker inspect container_id :

   "Gateway": "172.17.0.1",

   "IPAddress": "172.17.0.2",

 

xdebug config:

xdebug.remote_enable=1

xdebug.remote_autostart=1

xdebug.remote_connect_back=1

;xdebug.remote_port=881

xdebug.remote_log=/tmp/php5-xdebug.log

xdebug.idekey=PHPSTORM

;xdebug.remote_host=localhost

 

I tried a lot of variations of those settings.

 

Xdebug wizard shows everything fine.

 

tried: sitename.com:881?XDEBUG_SESSION_START=PHPSTORM and still nothing.

 

Any help?

 

Thanks!

3 comments
Comment actions Permalink

Did the same setup work fine before? How do you run debug (step by step please)?

Could you please enable remote debug logging per https://intellij-support.jetbrains.com/hc/en-us/articles/206544819-How-to-collect-remote-log-for-XDebug & PhpStorm "problems with PHP debugging: com.jetbrains.php.debug" per https://intellij-support.jetbrains.com/hc/en-us/articles/207241115 ?

After that please retry a debug and send us resulting logs.

0
Comment actions Permalink

I don't know if it's issue with PHPStorm or Docker but connect_back doesn't seem to be working for me either with Docker for Mac. It did work with Docker Toolbox.

0
Avatar
Vladimir Luchansky
Comment actions Permalink

There is an issue with connection over unix sockets.

Please check the workaround here: https://youtrack.jetbrains.com/issue/IDEA-153973#comment=27-1456535

0

Please sign in to leave a comment.