Following the instructions here, and I am stuck at the silliest of steps..
make a simple test.php file, put a phpinfo(); statement in there, then copy the output and paste it into the XDebug installation wizard.
I have created the the test.php file (with phpinfo(); as the only statement ), but I can't run it...
What I have done:
I have installed XAMPP, and started Apache on port 8080. http://localhost:8080/ gets me the XAMPP dashboard, so I know that is ok
I have "php.validate.executablePath": "C:/xampp/php/php.exe" in my settings.json
I have a tasks.json build task as follows
{
"version": "0.1.0",
"command": "php",
"args": [
"-S", "127.0.0.1:8080",
"-t", "${workspaceRoot}"
]
}
but when I try to run it, I get an error
Failed to launch external program php -S 127.0.0.1:8080 -t ${workspaceRoot}.
spawn php ENOENT
Is my whole approach (gleaned from various guides on the web) somehow wrong, or what have I missed out? (I am a 20+ years MS dev, but I know zero about php, so sorry if it is a really daft question)