Calling Developers!
We are reenergizing our code contribution process! Learn More

What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi everyone, anyone install with Docker in Windows and enable XDebug? i got this error in logs "[yve

Options
U01UHQE5Z27
U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet

Hi everyone, anyone install with Docker in Windows and enable XDebug? i got this error in logs "[yves] [yves_eu] - [21-Apr-2021 00:29:09] 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

Comments

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    Did you configure PhpStorm or Visual Studio Code to listen to connections on port 9003 and have the listening mode enabled?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options
  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    @valerii.trots according to his error message it's already configured that way

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    Options

    You are right, sorry.

  • U01T075RRHD
    U01T075RRHD Posts: 118 🧑🏻‍🚀 - Cadet
    Options

    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

  • U01T075RRHD
    U01T075RRHD Posts: 118 🧑🏻‍🚀 - Cadet
    edited April 2021
    Options

    Setting

    xdebug.log_level=0
    

    should to the trick

  • U01UHQE5Z27
    U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet
    Options

    Thank you all for the answers

  • U01UHQE5Z27
    U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet
    Options

    @U01LE4BMBK7 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
                }
            },
        ]
    }

  • U01UHQE5Z27
    U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet
    Options

    @U01LE4BMBK7 is that enough?

  • U01UHQE5Z27
    U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet
    Options

    @UK5EG6PBM in which file i must put that info?

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    /home/dmorales/spryker-b2c-demo needs to be /data

  • U01T075RRHD
    U01T075RRHD Posts: 118 🧑🏻‍🚀 - Cadet
    Options

    @U01UHQE5Z27 this setting needs to go into you ini config file

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    In VS Code in the Run and Debug section click on the settings icon on the top

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 🧑🏻‍🚀 - Cadet
    Options

    your local directory gets mounted in the Docker container at /data

  • U01UHQE5Z27
    U01UHQE5Z27 Posts: 57 🧑🏻‍🚀 - Cadet
    Options

    ok, i'm gonna test it, thank you both @U01LE4BMBK7 and @UK5EG6PBM