DEV Community

Discussion on: PHP Debugging With Xdebug 3 Inside a Docker Container

ericb profile image

Since XDEBUG 3, whenever we run our code we get the following error if our IDE is not listening for XDEBUG (e.g. F5 -> Step Debugging). It's more apparent when we run stuff in CLI, especially drush command in our case.

Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (fallback through xdebug.client_host/xdebug.client_port) :-(

Are you getting this too? Do you have a solution? or a way to silence them?

lynnntropy profile image
Lynn Romich Author

Yup, I get this too if I run any code while my editor isn't listening for debugging connections. I haven't tried this, but I think you can get it to stop doing that by changing xdebug.log_level to a lower setting?