php-xdebug-docker icon indicating copy to clipboard operation
php-xdebug-docker copied to clipboard

xdebug not starting

Open Arkanius opened this issue 6 years ago • 3 comments

Hello, I tried to follow your configs and couldn't make this work. The debug console is clear and the code isn't stoping at break points. I just cloned your repo and followed your structions. Do you have any ideia?

Arkanius avatar Aug 21 '19 14:08 Arkanius

I ran into the same issue and for me, changing this in the Dockerfile helped me:

xdebug.remote_host=172.17.0.1

172.17.0.1 is the Docker network ip.

BarbaAlGhul avatar Sep 03 '19 19:09 BarbaAlGhul

But how do I know what is the docker network ip? I'm trying to inspect network but every time that I stop my running containers it changes

Arkanius avatar Sep 05 '19 15:09 Arkanius

Try to use this command on your terminal:

docker network inspect bridge

And use the address on Config > Gateway(not the Subnet one, watch out, they are close together)

BarbaAlGhul avatar Sep 05 '19 15:09 BarbaAlGhul