Hello, I can't run XDebug using Windows, Docker an...
# docker
c
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?
a
Hello Łukasz, in
docker/context/php/debug/etc/php/debug.conf.d/69-xdebug.ini
please try to change
xdebug.remote_host=host.docker.internal
.
After that
docker/sdk boot deploy.dev.ym
(or what deploy file you are using) and up again.
c
I've changed it and it didn't help 😞
a
How do you run docker? Wsl1\2?
c
wsl2
a
Internally our developers faced IP issue:
Copy code
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
c
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! :)
👍 1
a
Right, it's because of xdebug v3 has different settings...
h
@wooden-dress-65386 & @hundreds-flower-81270 Maybe that helps you too?
m
We're already looking into that 👍
h
Sorry didn't help. Also no new info here 😞. I already tried all this. Also tried it again. Still no luck.
h
Too bad @hundreds-flower-81270 😞 In this case I suggest to raise an official support case at support.spryker.com
h
@happy-toddler-59673 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.
🎉 2
h
That's awesome, so glad to hear that @hundreds-flower-81270!
👍 1