I’ve been working with VSCode + Docker in Windows for some years now, and managed to have a fully working dev environment without any issues. Recently i setup a new development environment with WSL2. Moved all my projects, libraries, CLIs, etc, into WSL, using Docker Windows with WSL2 containers and VSCode on Windows with remote connection to WSL. Everything is
Tag: visual-studio-code
Laravel AbstractVariables.php line 54 Expected name to be a string
I am using Laravel 6 with visual studio code. The last successfully command i run is given below with their out put. But after that, whatever command i do execute it gives me an error I have tried to execute given below commands, but all of these ends up with above mentioned error. I have tried to find out file
How to set up VSCode, PHP Debug and XDebug (Windows 10)
I want to use VSCode’s ‘PHP Debug’ plugin with Xdebug to debug PHP scripts. But when I choose “Debug|Start Debugging F5” the little debug pop-up appears and I am stuck. Buttons for Pause, Restart, Stop are active. Buttons for Step over, into, out are inactive (greyed out). Nothing happens in the debug console. (1) VSCode 1.42.1 is installed (2) XAMPP
PHP CodeSniffer Error: The phpcs report contains invalid json
I want to add PHP CodeSniffer to VScode. Within VScode I am getting the error ‘phpcs: The phpcs report contains invalid json’ However when I run the following command in the terminal: phpcs –…
Debugging Laravel application on VSCode
Has anyone successfully configured VSCode to debug Laravel-based website? After having followed numerous articles and tutorials, I have made it to the point where I can ask VSCode to “Listen to XDEBUG”, but I haven’t been able to do normal VS-style debugging where I could just hit F5 to launch current the website in my favorite browser and it would
Microsoft VS Code: When I try to launch my program error “spawn php ENOENT” shows up
I am trying to run PHP code on Microsoft VS Code. When I click launch the only thing that happens is an error in the debug console saying: spawn php ENOENT To fix this, I have put the dll file for XDebug into the ext folder. I copied php.ini-development into a new file called php.ini and in that file I
PHP Debug in Visual Studio Code breaks on every exception
I am just starting to use the PHP Debug extension in Visual Studio Code (Ubuntu 14.04). It mostly works fine for me, but I have a problem that every time an exception is thrown, the debugger …
How can I format PHP files with HTML markup in Visual Studio Code?
I’m using Laravel so all the views are .blade.php files. Visual Studio Code won’t format the HTML because of the PHP extension. I removed the “blade” part of the filename, but it still isn’t formatting the files properly (via Alt+Shift+F). I also tried about five extensions, but none of them do the reformatting. How can I format .blade.php files in