我正在使用Angular CLI(从这里开始为零https://cli.angular.io/)
和VS Code。我正在尝试调试我的代码。调试会话正在运行,但如果我想继续,那么我得到以下信息:
在当前上下文中未启用命令“Debug:Continue”。
这是我启动的配置:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceRoot}",
"userDataDir": "${workspaceRoot}/out/chrome"
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"webRoot": "${workspaceRoot}"
}
]
}
如何在VS Code中启用它或如何调试它?