I have changed PHP versions and I can not make VSCode debugging with any of my sites in Local neither nginx /apache or php 7.4.30 or php 8.1.9. Previously (just a few days ago ) debugging worked perfectly. My OS is Windows. I have tried restarting Local and VSCode several times also.
Some info here:
In VSCode user settings I have
“php.validate.executablePath”: “C:\Program Files (x86)\Local\resources\extraResources\lightning-services\php-7.4.1+18\bin\win64\php.exe”,
“php.debug.executablePath”: “C:\Program Files (x86)\Local\resources\extraResources\lightning-services\php-7.4.1+18\bin\win64\php.exe”,
launch.json is on public folder inside ./vscode folder
I am not sure about PHP executable.
I have changed in VSCode File > Preferences > Settings in PHP Debug extension:
“php.validate.executablePath”: “C:\Users\ignasi\AppData\Roaming\Local\lightning-services\php-7.4.30+1\bin\win64\php.exe”,
“php.debug.executablePath”: “C:\Users\ignasi\AppData\Roaming\Local\lightning-services\php-7.4.30+1\bin\win64\php.exe”,
Notice double \ , because \ is an escaping character.