I have been using XDebug with PHP Version 7.0.* for the last 6 months on a MAC using remote debugging to a Docker container.
I was running an older version of docker that was using VirtualBox to VM for docker, all was working fine.
I recently updated docker to version 17.03.1 and have had nothing but issues with xDebug. I have contacted the creator of vscode-php-debug via an issue on his repository and he then pointed me to take the issue up with xdebug and or docker.
My issue is the following:
XDebug is running and working on my container, the xdebug log shows that it connects to my IDE but it simply closes the connection as if there are no breakpoints when I have breakpoints set in VSCode.
The issue I posted on vscode-php-debug can be found here
Which has a copy of my xDebug logs and VSCode debug logs... It shows that the connection is made but no breakpoints are hit.
I have read around a few blogs that docker now needs a loopback ip created for the connection to xdebug to work, which I have also tried and failed.
I'm finding it surprisingly hard to debug without a debugger after using one for so long.
I have tried many configs, reinstalled, rebooted, rebuilt images/containers and even have tried the docker and xdebug irc channels on freenode without any success.