Open r1tt3r opened 1 year ago
While I'm not using WSL, The RD -> PHPStorm XDebug Configuration is working fine for my team and I, both on Windows and OSX. I'm inclined to think there is likely a simply config setting not correct here. IE: Did you define PHP_IDE_CONFIG
in your container? Do you have xdebug.remote_host
(or whatever it is now) set to host.docker.internal
? Have you updated your windows firewall to allow the connection?
Actual Behavior
Today I'm using Windows + Rancher Desktop + WSL2 to run my containers. I use the WSL with Ubuntu to start my containers. The problem is when the IDE tries to find the PHP interpreter of my container and gets lost along the way. Without the CLI interpreter mapped in IDE I cannot use the xDebug.
Steps to Reproduce
Open PHPStorm and go to settings -> PHP -> CLI Interpreter -> Plus button to create a new:
As you can see, PHPStorm is able to find the container with PHP. But didn't find the PHP executable.![image](https://user-images.githubusercontent.com/9289149/191751886-b8454db2-19ad-4b32-a51c-570053d41ed3.png)
So I connected to the container to get the path of PHP:![image](https://user-images.githubusercontent.com/9289149/191751620-c503bd55-fbab-4589-a004-897df90f8615.png)
And then I inserted it in the field, but didn't solve the error:![image](https://user-images.githubusercontent.com/9289149/191752395-b6ebb703-c457-430c-a9b8-a641795374b8.png)
Result
IDE cannot map the PHP Interpreter and therefore I can't configure xdebug.
Expected Behavior
PHP Interpreter should be mapped by IDE and some functionalities related to it will work.
Additional Information
No response
Rancher Desktop Version
1.5.1
Rancher Desktop K8s Version
1.2.4.4
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 11 Enterprise 21H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response