.vscode/launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"sourceMaps": false,
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"start"
]
},
{
"name": "UnitTest",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"sourceMaps": false,
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"test-dev"
]
},
{
"name": "Attach by Process ID",
"type": "node",
"request": "attach",
"processId": "${command:PickProcess}",
"restart": true,
"protocol": "inspector"
// "port": 9229
// "processId": 9228
}
]
}