2

I have installed PHPStorm via snap into WSL version of Ubuntu because of this phpstorm/wsl2 defect I cannot use the Windows version of PHPStorm as it freezes frequently. When it works Xdebug works ok with the Windows version. However, trying to use the Linux version I had no success. Could you advise what needs to be changed when running the Linux version of PHPStorm inside Windows to make xdebug work? (either by using Linux Chromium or Windows Chrome).

What should I set xdebug.client_host? Should I keep it as host.docker.internal or change it?

(verification of Linux version of PHPStorm running in WSl) enter image description here

Real Dreams
  • 5,408

1 Answers1

0

I finally found a solution here.

Help -> Edit custom VM options and put this in there:

-Djava.net.preferIPv4Stack=true

See the link for more details. Jamie Holly is a legend to posting the solution.

xdebug.client_host should be host.docker.internal as usual.

Real Dreams
  • 5,408