On Linux (Debian bullseye and Docker 20.10.17, in my case), I guess I have to set the below extra_hosts
for xdebug according to this Stack Overflow answer.
(mw docker env set MEDIAWIKI_XDEBUG_CONFIG "client_host=127.0.0.1"
and localhost
do not work for me)
extra_hosts:
- "host.docker.internal:host-gateway"
I tried to edit $(mw dev where)/mediawiki.yml
, but the file seems to be overwritten whenever I execute mw dev mw create
.
Alternatively, I had to mw docker env set MEDIAWIKI_XDEBUG_CONFIG "client_host=172.17.0.1"
and it worked for me. It is suggested on this Stack Overflow answer.
Could this be improved? I do even not know 172.17.0.1
meaning.