{
   // Use IntelliSense to find out which attributes exist for C# debugging
   // Use hover for the description of the existing attributes
   // For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
   "version": "0.2.0",
   "configurations": [
    // use this for running tests against the installed version of common - this is more representative of how it will run in the pipeline
     {
       "name": "Debug GrantsConnect Test",
       "request": "launch",
       "runtimeArgs": [
         "run",
         "test:debug",
         "${fileBasenameNoExtension}"
       ],
       "runtimeExecutable": "npm",
       "skipFiles": [
         "<node_internals>/**"
       ],
       "outputCapture": "std",
       "type": "pwa-node"
     },

    // use this for running tests against the local common code - this is *NOT* how the pipeline runs and could result in tests passing/failing locally when it wouldn't in the pipeline
     {
       "name": "Debug GrantsConnect Test (local)",
       "request": "launch",
       "runtimeArgs": [
         "run",
         "test:local-debug",
         "${fileBasenameNoExtension}"
       ],
       "runtimeExecutable": "npm",
       "skipFiles": [
         "<node_internals>/**"
       ],
       "outputCapture": "std",
       "type": "pwa-node"
     },
     {
       "name": "Debug Common Test",
       "request": "launch",
       "runtimeArgs": [
         "run",
         "test:common-debug",
         "${fileBasenameNoExtension}"
       ],
       "runtimeExecutable": "npm",
       "skipFiles": [
         "<node_internals>/**"
       ],
      "outputCapture": "std",
       "type": "pwa-node"
     },
     {
       "name": "Attach to Edge",
       "port": 9222,
       "request": "attach",
       "type": "pwa-msedge",
       "webRoot": "${workspaceFolder}"
     },
     {
       "name": "Launch Edge",
       "request": "launch",
       "type": "pwa-msedge",
       "url": "https://localhost:51851/platform/client-management/grant-managers/managers",
       "userDataDir": false,
       "webRoot": "${workspaceFolder}"
     },
    {
      "type": "chrome",
      "request": "attach",
      "name": "Attach to Chrome",
      "address": "localhost",
      "port": 9222,
      "webRoot": "${workspaceFolder}",
      "urlFilter": "https://localhost:51851/*"
    },
    {
      "name": "Current TS File",
      "type": "node",
      "request": "launch",
      "env": {
        "TS_NODE_PROJECT": "server/tsconfig.json"
      },
      "args": [
        "${relativeFile}"
      ],
      "runtimeArgs": [
        "--nolazy",
        "-r",
        "ts-node/register"
      ],
      "sourceMaps": true,
      "cwd": "${workspaceRoot}",
      "protocol": "inspector"
    },
    {
      "name": "Local Process with Kubernetes (Preview)",
      "type": "dev-spaces-connect-configuration",
      "request": "launch"
    }
  ]
}
