VS Code 调试报错
F5调试html时报错,原因是没有添加"file": "${workspaceFolder}/index.html"节点
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/",
"file": "${workspaceFolder}/index.html"
}
]
}