My setup is Windows + WSL2 + Ubuntu + Docker, i’m running a Symfony project. Web debugging works fine, for example when i open some page and trigger some function, it works. However, when i run some command from terminal, it does not work and specifically xdebug.log shows one related error i suppose, i masked it with ***:
[1873] [Step Debug] WARN: Breakpoint file name does not exist: //wsl.localhost/Ubuntu/root/www/****************************(No such file or directory).
What i found strange is that in windows explorer the path is with the backslashes
\wsl.localhostUbunturootwww****************************
But xdebug tries with forward slash and it fails, is the reason why xdebug won’t work from CLI could be this?
xdebug.ini
zend_extension=xdebug
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
xdebug.start_with_request=yes
xdebug.log=xdebug.log
xdebug.log_lev=10
xdebug.discover_client_host=1
Nothing yet, i do not know from where to start.
Lukas Velicka is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.