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": [
    {
      "type": "node",
      "request": "launch",
      "name": "build-db-debug",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "program": "${workspaceFolder}/scripts/build-db/index.js",
      "runtimeExecutable": "/home/jsbisht/.nvm/versions/node/v14.17.3/bin/node",
      "args": [
        "ppp"
      ]
    },
    {
      "type": "pwa-node",
      "name": "functions-debug",
      "request": "launch",
      "restart": true,
      "console": "integratedTerminal",
      "internalConsoleOptions": "openOnSessionStart",
      "cwd": "${workspaceFolder}/functions",
      "runtimeExecutable": "/home/jsbisht/.nvm/versions/node/v14.17.3/bin/npm",
      "runtimeArgs": [
        "run",
        "debug"
      ],
      "resolveSourceMapLocations": [
        "${workspaceFolder}/**",
        "!**/node_modules/**"
      ]
    },
    {
      "type": "node",
      "name": "vscode-jest-tests",
      "request": "launch",
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "disableOptimisticBPs": true,
      "cwd": "${workspaceFolder}/functions",
      "runtimeExecutable": "/home/jsbisht/.nvm/versions/node/v14.17.3/bin/npm",
      "args": [
        "run",
        "test:unit:watch"
      ]
    }
  ]
}