.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": "Test via NPM",
"request": "launch",
"runtimeArgs": ["run-script", "check:test", "--", "--runInBand"],
"runtimeExecutable": "npm",
"skipFiles": ["<node_internals>/**"],
"type": "pwa-node"
},
{
"type": "chrome",
"request": "attach",
"name": "Client (Chrome Attach)",
"port": 9222,
"smartStep": true,
"showAsyncStacks": true,
"urlFilter": "http://localhost:8081",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "attach",
"name": "Server (Node Attach)",
"protocol": "inspector",
"smartStep": true,
"port": 9229,
"restart": true,
"showAsyncStacks": true,
"cwd": "${workspaceRoot}"
}
]
}