Hi everyone, anyone install with Docker in Windows...
# docker
n
Hi everyone, anyone install with Docker in Windows and enable XDebug? i got this error in logs "[yves] [yves_eu] - [21-Apr-2021 002909] WARNING: [pool debugger] child 10 said into stderr: "NOTICE: PHP message: Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(" and i dont know why or how i can fix it
h
Did you configure PhpStorm or Visual Studio Code to listen to connections on port 9003 and have the listening mode enabled?
a
h
@average-branch-45579 according to his error message it's already configured that way
a
You are right, sorry.
a
I think this is the default message from XDebug v3 when no client is listening. You can configure XDebug to not log to stdout if you want to suppress this message
Setting
Copy code
xdebug.log_level=0
should to the trick
n
Thank you all for the answers
@happy-addition-42792 i did this in VS Code, Install PHP Debug Extension and add launch.json with this content {     "version": "0.2.0",     "configurations": [              {             "name": "Listen for XDebug",             "type": "php",             "request": "launch",             "port": 9003,             "pathMappings": {                 "/home/dmorales/spryker-b2c-demo": "${workspaceFolder}",             },             "log": true,             "xdebugSettings": {                 "max_data": 65535,                 "show_hidden": 1,                 "max_children": 100,                 "max_depth": 5             }         },     ] }
@happy-addition-42792 is that enough?
@powerful-oyster-48938 in which file i must put that info?
h
/home/dmorales/spryker-b2c-demo
needs to be
/data
a
@nutritious-daybreak-34090 this setting needs to go into you ini config file
h
In VS Code in the
Run and Debug
section click on the settings icon on the top
your local directory gets mounted in the Docker container at
/data
n
ok, i'm gonna test it, thank you both @happy-addition-42792 and @powerful-oyster-48938