DEV Community

How to set up PHP executable path in VSCode (XAMPP user's)

Jesus Abril on January 11, 2020

Did you find this message when creating a PHP file in VSCode? Cannot validate since no PHP executable is set. Use the setting 'php.validate.execut...
Collapse
 
amir_gharajedaghi profile image
Amir

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: go.microsoft.com/fwlink/?linkid=83...
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 80
}
]
}

Collapse
 
jaimefo1 profile image
JAIME FERNANDEZ ORTEGA

Hola Jesús, me ha surgido un problema con VS Code, y es que ha dejado de maracar los bloques para colapsar, sólo en php, en js o html funciona, tienes idea de qué puede ser, he reinstalado, pero me coge los mismo settings, no cambia nada, el caso es que cuando lo inicio hay un momento al principio que aparecen las flechas de colapsar, pero se van en seguida, solo para php
un saludo :)

Collapse
 
3rchuss profile image
Jesus Abril

Hola Profe, pues creo que tienes un conflicto de plugins, prueba a deshabilitar los que no estés utilizando por el momento.

Collapse
 
ntalamdotcom profile image
ntalam

it Works... thanks

Collapse
 
jswizard profile image
Ogbuagu Francis

very helpful thanks

Collapse
 
jreegene profile image
Jeremiah

ext install PHP Debug does not fetch anything to be installed. Any issues similar

Collapse
 
theonlywisdom profile image
Wisdom Akwoyere Baah

Perhaps you could try installing the PHP Debug extension, then take it from there.

Collapse
 
3rchuss profile image
Jesus Abril

Maybe incompatibility with other plug-ins.
Try to install the latest version and deactivate other php plug-ins.

Collapse
 
agbams profile image
Ugochukwu Agbams

Hey @3rchuss , thanks for this wonderful piece of work. It really helped me out, and I now have everything up and running with my vs code in connection with xampp.

Collapse
 
3rchuss profile image
Jesus Abril

Great. Im glad that this helped you out.
Thank you.

Collapse
 
harshitharas profile image
Harshitha Rasamsetty

What does "set a stop point in VSCode" mean?

Collapse
 
theonlywisdom profile image
Wisdom Akwoyere Baah

A break point, I guess.

Collapse
 
hamilton_hidalgo_7847c601 profile image
Hamilton Hidalgo

Thank you.