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, I can't run XDebug using Windows, Docker and PHPStorm. Things i've done: • running spryker wi
Hello,
I can't run XDebug using Windows, Docker and PHPStorm.
Things i've done:
• running spryker with "x" flag
• sending PHPSTORM cookie via browser (Xdebug helper extension)
• pulling docker-sdk to the current version
• setting PHPStorm like screens below
• setting breakpoint in 1st line of controller action (breaking at 1st line doesn't work either)
• opening Zed or Yves app and XDebug is doing nothing
Have you any ideas what should I check or set more?
Comments
-
Hello Łukasz, in
docker/context/php/debug/etc/php/debug.conf.d/69-xdebug.ini
please try to changexdebug.remote_host=host.docker.internal
.0 -
After that
docker/sdk boot deploy.dev.ym
(or what deploy file you are using) and up again.0 -
I've changed it and it didn't help 😞
0 -
How do you run docker? Wsl1\2?
0 -
wsl2
0 -
Internally our developers faced IP issue:
If everything seems to be right but debugging in phpstorm ist not working try this: First check your machines IP addresses by opening a Power Shell console and enter “ipconfig” and check the available network adapters and their IPs. Edit docker/deployment/default/bin/environment/docker.sh and find the line local myIp='host.docker.internal change the host there to your IP address. If you have multiple network adapters you might need to try each IP until it works. Edit docker/bin/environment/docker.sh as well in the same way Run docker/sdk stop and then run docker/sdk up To be sure restart phpstorm Run docker/sdk cli -x then run inside of it console - phpstorm should now show work with the breakpoints
0 -
in docker/context/php/debug/etc/php/debug.conf.d/69-xdebug.ini
I set xdebug.client_host=host.docker.internal
and it started working
thanks for your help!0 -
Right, it's because of xdebug v3 has different settings...
0 -
@U010DNAA3QW & @U01LLUGR1F0 Maybe that helps you too?
0 -
We're already looking into that 👍
0 -
Sorry didn't help. Also no new info here 😞.
I already tried all this. Also tried it again. Still no luck.0 -
Too bad @U01LLUGR1F0 😞 In this case I suggest to raise an official support case at support.spryker.com
0 -
@UJLM6CAFR I went through all of the instructions again, after changing the config over and over again and noticed, that my config said xdebug.remote_host instead of xdebug.*client*_host.
That finally did the trick, but I'm sure I already had it the right way, but something about windows defender a different way, why it propably didn't work.So it seems I finally got it to work. Thank you.
0 -
That's awesome, so glad to hear that @U01LLUGR1F0!
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 77 Spryker News
- 939 Developer Corner
- 795 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 28 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random