![]() I can ping the WSL machine from within the container: sh-5.0# ping -c 3 172.24.17.219 This is my `xdebug.ini`: zend_extension=xdebug.so I checked phpstorm listening on port 9000 ok.I have also set `remote_autostart` and `remote_connect_back`.I have enabled WSL distro integration in docker desktop.I have spent whole day - more than 12 hours trying to figure out what is what. I am very new to phpstorm and I am battling how to setup xdebug. :php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9006 -dxdebug.remote_host=172.18.48.1 /home/spaceemotion/code/xxxxxx/backend/vendor/phpunit/phpunit/phpunit Adding options like `xdebug.remote_enable=1` to the config, but this is being done by PHPStorm anyways when it runs the remote php instance (`remote_connect_back` also did not do the trick):.New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow Adding a firewall rule to allow incoming requests as described in (as well as restarting a couple times after adding the rule).Changing the port to something other than 9000 (portscans also reveal that none of them are in use).This is for CLI only, I'm not trying to connect via php-fpm (so no apache, nginx. E: Time-out connecting to client (Waited: 200 ms). Whenever I run my tests with debugging enabled it says "Connection was not established.". WSL2 running Ubuntu 20, with php and php-xdebug installed. I am having trouble getting PHPStorm 2020.2 to work with xdebug with the following setup:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |