cachaito
12/18/2019 - 11:18 AM

VS Code debugging with Nodemon / TS / external console / Docker

{
  "name": "Node debugger",
  "type": "node",
  "request": "attach",
  "protocol": "inspector",
  "restart": true,
  "sourceMaps": true,
  "address": "localhost",
  "port": 9229,
  "localRoot": "${workspaceFolder}",
  "remoteRoot": "/usr/app",
  "outFiles": ["${workspaceFolder}/build/**/*.js"],
  "sourceMapPathOverrides": {
    "/usr/app/*": "${workspaceRoot}/*"
  }
}