I am using XDebug with PHP version 7.0. * Over the past 6 months on a MAC using remote debugging in a Docker container.
I ran an older version of docker that used VirtualBox for VM for dockers, everything worked fine.
I recently upgraded docker to version 17.03.1 and had nothing but problems with xDebug. I contacted the creator of vscode-php-debug through a problem in my repository, and he then told me to fix the problem with xdebug and / docker.
My problem is this:
XDebug is working and working on my container, the xdebug log shows that it connects to my IDE, but it just closes the connection, as if there were no breakpoints when I have breakpoints set in VSCode.
The problem I posted on vscode-php-debug can be found here
Which has a copy of my xDebug logs and VSCode debug logs ... Indicates that the connection is complete, but the breakpoints are not deleted.
I read several blogs that docker now needs a loopback ip created to connect to xdebug for work, which I also tried and failed.
It is very difficult for me to debug without a debugger after long use.
I tried many configurations, reinstalled, rebooted, rebuilt images / containers and didn’t even try the docker and xdebug irc channels on freenode without any success.
source
share