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 guys! My xdebug suddenly stopped working! I've already tried rebooting, reinstalling the proje

U01K43ADW5N
U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet
edited February 2021 in Help

Hello guys! My xdebug suddenly stopped working! I've already tried rebooting, reinstalling the project, purging the docker machines, using different browsers and IDEs.
Does anyone have any idea on what I can try to resolve this?
These are my debug configs:

Comments

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    can you verify that these ports are indeed exposed and open?

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

    Yeah, PhpStorm is listening for them

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

    Might be related to discussion we had yesterday internally.

    There was a major Xdebug update (2.9 -> 3) in the latestΒ spryker/php:7.3, but the included config doesn't match yet. Switch toΒ spryker/php:7.2Β in your docker-comppose as a temporary fix (e.g.Β deploy.dev.yml).
    

    But I would try actually to use spryker/php:7.3-alpine3.12 or spryker/php:7.3-alpine3.11 if changing to 7.2 isn't an option.

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

    Hmm I'll try to do that, thanks @valerii.trots

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

    Or maybe that won't help as both has been pushed yesterday as well.

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

    So maybe the only option is really to downgrade to 7.2 images.

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

    We already use spryker/php:7.3-alpine3.12, I'll try chanigng to spryker/php:7.3-alpine3.11 and 7.2 if it does not work

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

    Same here, can't debug anymore.

  • U01K43ADW5N
    U01K43ADW5N Posts: 69 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited February 2021

    The strange thing is that it was until yesterday it was working fine, we did not update the docker images

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

    Don't waste your time with 7.3:

    We updated all the images on docker hub except 7.2 based.
    
  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    I did a clean setup this morning. Most likely I git the docker images updated.

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

    Also these settings may work:

    xdebug.default_enable=0
    xdebug.auto_trace=0
    xdebug.coverage_enable=0
    xdebug.mode=debug
    xdebug.start_with_request=1
    xdebug.client_host=${SPRYKER_XDEBUG_HOST_IP}
    xdebug.client_port=9003
    
  • U0121G9LVNC
    U0121G9LVNC Posts: 27 πŸ§‘πŸ»β€πŸš€ - Cadet

    Any timeframe on when the 7.3+ Images will be fixed?

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

    Port 9003 needs to be exposed

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

    Any timeframe on when the 7.3+ Images will be fixed?

    Yesterday it was said that today they will be fixed but it's not an official statement and I wouldn't like to bring wrong expectations here.

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

    πŸŽ‰

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

    I can confirm that docker/sdk 1.30.0 and changing the debug port to 9003 worked for me. Thanks!

  • U01M92SJ0DP
    U01M92SJ0DP Posts: 4 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited February 2021

    Got it to work by using por 9003 thanks @valerii.trots