When I try to debug my php code I get the error:
Error: spawn php ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:84:9) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn php',
path: 'php',
spawnargs: [
'c:\\xampp\\htdocs\\fantatools\\wordpress\\wp-content\\themes\\feisar\\api\\calendario.php'
]
}
I followed the xdebug wizard instruction but it's still not working:
- Download
php_xdebug-2.9.1-7.3-vc15-x86_64.dll - Move the downloaded file to
C:\xampp\php\ext - Edit
C:\xampp\php\php.iniC:\WINDOWS\php.iniand add the linezend_extension = C:\xampp\php\ext\php_xdebug-2.9.1-7.3-vc15-x86_64.dll - Make sure that
zend_extension = C:\xampp\php\ext\php_xdebug-2.9.1-7.3-vc15-x86_64.dllis below the line for OPcache. - Restart the webserver
phpinfo()output? Is PHP on the path? The error that you get from VSCode indicates that it is not.