Closed pediRAM closed 2 years ago
Hi @pediRAM !
First the question.
"The path to a PHP executable." is the path to php.exe
and is used when starting a script to debug. For example with the debug configuration "Launch currently open script". It can also be overridden in launch,json.
Regarding the other error. This is a bit strange, I have not yet seen it.
Try to uninstall the PHP Debug extension, make sure there are not two, then go to your Windows user folder and make sure the extension is deleted: delete folder .vscode\extensions\xdebug.php-debug-1.28.0
.
If that doesn't work, try to delete VSIX cache under AppData\Roaming\Code\CachedExtensionVSIXs
.
Hope this helps.
Hi @zobo ! It works like a charm! Thank you very much!
As you recommended:
VSCode cannot activate PHP Debug extension
xdebug was working well... I don't know how (IMHO: auto update) and why, but now I get the error message "PHP Xdebug cannot be activated..." because the dependency "felixbecker.php-debug"...
I have searched the web, found some solutions (on stackoverflow.com), which I tried without success:
Also, there is another issue that confuses me:
"The path to a PHP executable." What does this mean? Any executable PHP script? PHP.exe? Xdebug.exe? The "...php/bin/" directory where "php" executable is?
An explicit or more intuitive message would make it more user-friendly (IMHO).
I am working on Win7 x64.
PHP version: 8.1.7 Xdebug version: 3.1.5 VS Code extension version: 1.28.0
Your launch.json: Xdebug php.ini config:
VSCode Error Message: