我已经安装了VS Code和PHP调试器。
我正在使用xampp。
我尝试以两种方式(侦听和启动)运行代码。
听着坐在那里,而Launch 在调试控制台中显示spawn php ENOENT。
这是我的launch.json。
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Run Code Online (Sandbox Code Playgroud)
我究竟做错了什么?