我下载了一个mean.io应用程序,我想知道如何使用vscode使用chrome调试平均堆栈项目。我安装了chrome调试器,并且在
中安装了以下内容package.json脚本:
"start": "concurrently -c \"yellow.bold,green.bold\" -n \"SERVER,BUILD\" \"nodemon server\" \"ng build --watch\""
launch.json脚本:
"compounds": [
{
"name": "Launch & Debug",
"configurations": ["Launch via NPM", "Launch Chrome"]
}
],
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"start"
],
"port": 4040
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4040",
"webRoot": "${workspaceFolder}"
}
]
两个配置脚本都在运行。 chrome返回“无法访问此网站”之前,npm没有时间完全启动
任何建议如何解决此问题?我确定我的设置不正确。