【发布时间】:2017-12-03 13:01:54
【问题描述】:
我目前在我的 Visual Studio Code 应用程序中有以下 launch.json。
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}\\server\\server.js"
},
{
"name": "Launch Chrome against localhost, with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200/",
"sourceMaps": true,
"webRoot": "${workspaceRoot}",
"sourceMapPathOverrides": {
"webpack:///*": "/*"
}
},
{
"name": "Attach to Chrome, with sourcemaps",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
/*"diagnosticLogging": true,*/
"webRoot": "${workspaceRoot}",
"url": "http://localhost:4200/*",
"sourceMapPathOverrides": {
"webpack:///*": "/*"
}
}
]
}
我想知道如何配置 Visual Studio Code 以在同一端口下启动我的 Angular 4 应用程序和 Node Express 后端,以便我可以使用简单的f5 调试双方。
有什么建议吗?
【问题讨论】:
标签: node.js angular express visual-studio-code