我正在使用具有以下两个扩展名的vscode:
Chrome调试器
PHP调试(已安装XDebug)
他们两个都可以单独工作,但是我想让他们在同一个项目中一起工作。 IE:为Javascript和PHP放置断点。问题在于两种配置的类型均为“启动”
这是我当前的launch.json需要修复:
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost/WebApp/login.php",
"webRoot": "${workspaceFolder}"
},
{
"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
}
]