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

Hey all... xdebug connection problems again... In Phpstorm server is configured, container are start

Options
U0432RV4J8P
U0432RV4J8P Posts: 12 🧑🏻‍🚀 - Cadet
edited November 2022 in Help

Hey all... xdebug connection problems again...
In Phpstorm server is configured, container are started with th -x flag, in xdebug.ini ${SPRYKER_XDEBUG_HOST_IP} is replaced with host.docker.internal.
Ide is set to listen for incoming xdebug connections.

In the logs xdebug complains time-outs (NOTICE: PHP message: Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: 172.18.208.119:9003 (through xdebug.client_host/xdebug.client_port) :-()

I could not get any breakpoint hit in Phpstorm. Any suggestions to get xdebug connect to ide?

Probably i have to mention that i am using the b2b demo shop...

Comments

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

    I use

    [XDebug]
    xdebug.client_host=host.docker.internal
    xdebug.client_port=9003
    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
    

    but we have own dev setup and do not use the spryker sdk

  • U0432RV4J8P
    U0432RV4J8P Posts: 12 🧑🏻‍🚀 - Cadet
    Options

    looks almost similar to my ini file except output_dir

  • U0432RV4J8P
    U0432RV4J8P Posts: 12 🧑🏻‍🚀 - Cadet
    Options

    Unfortunately that doesn't help... 😞