我目前在我的Visual Studio代碼應用程序中有以下launch.json
。Visual Studio代碼 - 使用Chrome調試器衝突的應用程序
{
"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代碼同一端口下啓動這兩個我角4的應用程序和節點快速後端,這樣我可以用一個簡單的f5
調試兩側。
有什麼建議嗎?