{
  // Use IntelliSense to find out which attributes exist for node debugging
  // Use hover for the description of the existing attributes
  // For further information visit https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch TypeScript",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/src/index.ts",
      "cwd": "${workspaceRoot}/dist",
      "args": ["tests", "prepare", "appium"],
      "sourceMaps": true,
      "outFiles": [ "${workspaceRoot}/dist/**/*.js" ]
    },
    {
      "name": "Launch",
      "type": "node",
      "request": "launch",
      "sourceMaps": true,
      "program": "${workspaceRoot}\\src\\index.ts",
      "stopOnEntry": false,
      "args": [],
      "cwd": "${workspaceRoot}",
      "preLaunchTask": null,
      "runtimeExecutable": null,
      "runtimeArgs": [
        "--nolazy"
      ],
      "env": {
        "NODE_ENV": "testCloudLocalDev"
      },
      "console": "internalConsole",
      "outFiles": []
    },
    {
      "name": "Launch with sourcemaps",
      "type": "node2",
      "console": "integratedTerminal",
      "request": "launch",
      "program": "${workspaceRoot}/src/index.ts",
      "cwd": "${workspaceRoot}",
      "runtimeArgs": [
        "--nolazy"
      ],
      "args": [
        // Add your Mobile Center CLI command
      ],
      "outFiles": [
        "${workspaceRoot}/dist/**/*.js"
      ],
      "sourceMaps": true,
      "preLaunchTask": "build-sourcemaps"
    },
    {
      "name": "Attach",
      "type": "node2",
      "request": "attach",
      "port": 5858,
      "address": "localhost",
      "restart": false,
      "sourceMaps": false,
      "outFiles": [],
      "localRoot": "${workspaceRoot}",
      "remoteRoot": null
    },
    {
      "name": "Attach to Process",
      "type": "node2",
      "request": "attach",
      "processId": "${command.PickProcess}",
      "port": 5858,
      "sourceMaps": false,
      "outFiles": []
    },
    {
      "name": "mocha",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
      "stopOnEntry": false,
      "args": [
        "--debug-brk",
        "--no-timeouts",
        "--colors",
        "--compilers",
        "ts:ts-node/register",
        "--recursive",
        "./test/**/*-test.[tj]s"
      ], //you can specify paths to specific tests here
      "cwd": "${workspaceRoot}",
      "runtimeExecutable": null,
      "env": {
        "NODE_ENV": "testing"
      }
    }
  ]
}