{
  "version": "0.2.0",
  "configurations": [
    {
      /*
       * Use the "npm run debug-node" to try this
       */
      "name": "Debug node server instance",
      "type": "node",
      "request": "attach",
      "stopOnEntry": false,
      "outFiles": ["${workspaceFolder}/dist_nodejs/**/*.js"],
      "port": 9229,
      "restart": true,
      "smartStep": true,
      "sourceMaps": true
    },

    {
      /*
       * run "npm start" then start this and you can debug client side in vscode
       * you need extensions installed and chrome
       */
      "type": "chrome",
      "request": "launch",
      "name": "Launch Chrome against localhost",
      "url": "http://localhost",
      "webRoot": "${workspaceFolder}//dist_client"
    },
    {
      "name": "Run current file (ts-node)",
      "type": "node",
      "request": "launch",
      "args": ["${relativeFile}"],
      "runtimeArgs": ["--nolazy", "-r", "./node_modules/ts-node/register"],
      "sourceMaps": true,
      "cwd": "${workspaceRoot}",
      "protocol": "inspector",
      "console": "integratedTerminal",
      "env": {
        "TS_NODE_TRANSPILE_ONLY": "true",
        "TS_NODE_IGNORE_DIAGNOSTICS": "true"
      }
    }
  ]
}
