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..

Hello team, I new here in Spryker, I have done the installation with Docker in Windows, and I want t

U04HZ4BLVMM
U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

Hello team, I new here in Spryker, I have done the installation with Docker in Windows, and I want to make the debugger working inside the phpStorm. I followed https://docs.spryker.com/docs/scos/dev/the-docker-sdk/202212.0/configuring-debugging-in-docker.html#troubleshooting-the-de[…]nfiguration-in-phpstorm but still nothing. What might be missing?

«13

Comments

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    edited January 2023

    this is my config

    [XDebug]
    xdebug.client_host=${XDEBUG_CLIENT_HOST}
    xdebug.mode=develop,debug,coverage
    xdebug.start_with_request=trigger
    
    xdebug.output_dir="/var/www/spryker/releases/current/data/xdebug"
    
    xdebug.max_nesting_level=1000%
    
  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Hello Julian, you have nothing change in CLI intepreter. Just those things.

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    What you mean? for using in cli I export the stuff in console

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet
    export PHP_IDE_CONFIG="serverName=Spryker"
    export XDEBUG_SESSION="PHPSTORM"
    export XDEBUG_MODE=debug
    
  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    I have the same xDebug setup

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    php web pages? you need php remote debug

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet
    edited January 2023

    But nothing happens!

  • UK7KBE2JW
    UK7KBE2JW Posts: 463 🧑🏻‍🚀 - Cadet

    server name and ide key u pass correct?

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Here is active

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Just changed that. Still the same

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Here are the pathMappings

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Sorry, but something I cannot figure it out!

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    I've got the same Problem: IDE in windows and the same configuration.

    In Spryker, the phpinfo is like this and missing the IDE-Key 😶

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Have you found a way in order to fix it?

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    No 😞

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    So the Spryker documentation is just for Vanilla installation 😕

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    Maybe your windows is not properly detected. - Can you try to apply that change in your docker-sdk? https://github.com/spryker/docker-sdk/pull/341/files

    Then rerun docker/sdk bootstrap deploy.dev.yml && docker/sdk up

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    The goal is that the remote-host is properly detected as host.docker.internal - what is your current remote host with the standard settings?

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    @florian.scholz nothing specific, I am just reading the documentation and training. So I am playing with the default setup

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    can you look into your phpinfo and tell me what is your value of $_SERVER[‘SPRYKER_XDEBUG_HOST_IP’] ?

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    @florian.scholz, when i do the changes, i get permission errors to write during bootstrapping

    and in the variable: $_SERVER['SPRYKER_XDEBUG_HOST_IP']172.25.10.171

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    172.20.48.14 here is mine

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    so as far as i know it should be host.docker.internal if all is correct. (i am on a mac so I can not validate)

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    “i get permission errors to write during bootstrapping” - this is strange, can you post the exact changes you did here?

  • U04HZ4BLVMM
    U04HZ4BLVMM Posts: 69 🧑🏻‍🚀 - Cadet

    Our current is Windows with WSL Ubuntu and Docker

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    WSL1 or WSL2 ?

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    These are the changes

  • U012PCVT2DB
    U012PCVT2DB Posts: 66 🧑🏻‍🚀 - Cadet

    and WSL2

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,071 ⚖️ - Guardians (admin)

    @U012PCVT2DB it seems to be correct. What is the exception message? Can you paste a screenshot?