

In general, to keep your IDE fast, the lesser the number of extensions, the better. You will find a list of useful extensions which are highly recommended to make your new IDE function just like Phpstorm/Webstorm. Thankfully, there are extensions to support almost every language and framework. If you haven’t, do so by downloading it from its official sourceīy default, VS Code does not come with out-of-the-box support for many languages like PHP, Java, Ruby, etc or even frameworks like React, Vue, Svelte, Symfony, etc. (In fact, faster than Webstorm/Phpstorm and lighter in terms of RAM usage)įirstly, you should have installed VS Code. Free of cost (thanks to Microsoft for making it Open Source ).VS Code provides the same functionality as Webstorm/Phpstorm.But here are a few advantages that I saw that compelled me try out VS Code – I love using Webstorm/Phpstorm and it has been the editor of my choice since several years now. ).Ĭhanging the port to something other than 9000 (portscans also reveal that none of them are in use).Īdding a firewall rule to allow incoming requests as described in (as well as restarting a couple times after adding the rule) New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action AllowĪdding 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): :php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9006 -dxdebug.remote_host=172.18.48.Been a user of Phpstorm/webstorm since long and wish to migrate to VS Code ? Skeptical about changing your IDE or the changes that it might bring along ? Fear not, for we will show you how you could setup VS code to be identical to Phpstorm/webstorm. 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). This is what the Xdebug log shows: Log opened at 17:20:45

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:
