A while back I succeeded at resolving this problem: How to properly setup VSCode and Wampserver to be able to debug and pause on breakpoint line, using VSCode / PHP XDebug / PHP Debug Extension? Now I have PHP 8 with the latest VSCode and Xdebug 3, but my breakpoint is not hit in my API, which runs with a
Tag: visual-studio-code
Can I use Visual Studio Code plugin Live Server instead of Xampp?
I’ll try to learn PHP for back-end, to create a localhost is it really necessary to use Xampp ??? Because in the past I’ve got lot of unsolvable problems with Xampp. Answer you can Install PHP Server and Live Server from VS Code marketplace and use them instead of xampp for more info please check the answers here https://stackoverflow.com/a/64542693/11236563
Limit value of array show in debug side bar
I’m trying to increase the value limit of an array in debug side bar. By default, with an array with many elements, vscode only displays up to 32 values. I want to increase it to a certain number or unlimited. This is my launch.json file: But it seems that using max_data is incorrect. So, how to increase it to a
Visual Studio Code native formatter messing with PHP code format
I’m having problems with Visual Studio Code. When I’m editing PHP code, and inputing an if/else statement, when I type else and hit ENTER, I get this crap formatting that looks like the following code segment and I have to manually change it (which is annoying to say the least). I turned off all extensions and it’s still doing it,
Visual Studio Code 1.56 PHP Validation not work
When I upgraded the VS Code from version 1.55 to version 1.56 the inline PHP validator stopped working (onType). I downgraded to 1.55 and everything works. Has anyone had this problem and how can I activate PHP validation in version 1.56? I tried HTML and JavaScript, this two validators works fine. Answer PRoblem is fixed in VS Code 1.57
How to define how a PHP object will be shown in VSCode when debugging with XDebug?
I have a feature I use when debugging C# applications in Visual Studio, and I’d like to know if it’s possible to do the same in PHP, when debugging with VSCode and XDebug. When I worked in C# and Visual Studio Debugger, when you add a object to Debugger Watches, it will by default show the objects class name, but
VS Code PHP Debugging without xdebug.remote_autostart=1
How can I use the PHP debugger withing VS Code without the following setting in PHP.INI? This setting makes apache extremely slow. Before I used PHPStorm and this supplied a parameter un the URL that triggered the debugger. I wonder if this is possible in VS Code too. I use VS Code 1.53.2 with the PHP extension pck from Felix
Cannot set breakpoints on Visual Studio Code
I’m not sure what happens, I can’t set breakpoints on php files, but I can do so on javascript files. I’ve been using vs code with php for months without a problem, I haven’t changed anything, but …
VSCodium (VSCode) doesn’t start debugging PHP (PHP Debug + Xdebug, Linux)
Goal Debug with PHP Debug, Xdebug and VSCodium. Problem VSCode doesn’t start debugging. When I click Start Debugging the blue line under the debugging control buttons appears and moves for a few seconds and then the control buttons disappear. Same when I press the green “Run” button Also on the left side, where “variables”, “watch” and “stack” are shown nothing
Xdebug error on local environment [Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so:]
I want to use Xdebug on the vscode. I tried it while reading the official documentation, but I couldn’t get it to work and got the following error. php –ini Has anyone else encountered the same problem? Thank you. Answer I got this working by doing something similar to this: https://stackoverflow.com/a/48054252 I added to ~/.bash_profile. You can run source ~/.bash_profile