9/10/2023 0 Comments Download phpstorm xdebug wsl2![]() ![]() Thereafter, I had to "install" (or enable) the PHP Debug extension specifically in the WSL:Ubuntu WSL2 environment, even though it was already installed in VSCode. It took about 10 minutes to "install" Remote-WSL into WSL2. To do this, you can click the Remote-WSL control on the VSCode status bar (bottom left corner) and choose "Reopen Folder in WSL". I had originally opened my VSCode WSL2 workspace using its Windows network share path \\wsl$\Ubuntu-18.04\srv\I had to reopen the workspace/folder using the Remote - WSL extension. I had to modify both /etc/php/7.3/apache2/php.ini and /etc/php/7.3/cli/php.ini on my system. Using Ubuntu 20.04, WSL2, Xdebug 3.02 with the VSCode extensions Remote WSL and PHP Debug by Felix Becker. The following worked for me on a PHP project with a single file just to test debugging. See the Xdebug Upgrade for details on changes. I cannot seem to get Xdebug to stop at breakpoints or even log errors. Most examples on the web for getting PHP debugging working with VSCode and WSL use Xdebug 2.x php.ini settings. WSL2 Xdebug PhpStorm debugging Ask Question Asked 2 years, 4 months ago Modified 1 year, 6 months ago Viewed 1k times 0 I have WSL running PHP 7.4 on Ubuntu 18.04 and using PhpStorm 2020 on a new Windows 10 build.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |