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

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

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

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

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

    You are right, sorry.

  • Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

    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

  • Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited April 2021

    Setting

    xdebug.log_level=0
    

    should to the trick

  • Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you all for the answers

  • Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    @U01LE4BMBK7 is that enough?

  • Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UK5EG6PBM in which file i must put that info?

  • Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Posts: 118 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

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

  • Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet

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

Welcome!

It looks like you're new here. Sign in or register to get started.