{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Extension",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceRoot}"
            ],
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out",
            "preLaunchTask": "build"
        },
        {
            "name": "Debug Debugger",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/out/debugger/nodeDebugWrapper.js",
            "runtimeArgs": [
                "--harmony"
            ],
            "stopOnEntry": false,
            "args": [
                "--server=4712"
            ], // Use "debugServer": "4712" on launch.json of the instance to debug
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out",
            "preLaunchTask": "build"
        },
        {
            "name": "Sample - Android App",
            "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js",
            "type": "node",
            "request": "launch",
            "args": [
                "android"
            ],
            "runtimeArgs": [
                "--nolazy"
            ],
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/SampleApplication/.vscode/.react/"
        },
        {
            "name": "Sample - iOS App",
            "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js",
            "type": "node",
            "request": "launch",
            "args": [
                "ios"
            ],
            "runtimeArgs": [
                "--nolazy"
            ],
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/SampleApplication/.vscode/.react/"
        },
        {
            "name": "Sample - Android Extension",
            "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js",
            "type": "node",
            "request": "launch",
            "args": [
                "android"
            ],
            "runtimeArgs": [
                "--nolazy"
            ],
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out/"
        },
        {
            "name": "Sample - iOS Extension",
            "program": "${workspaceRoot}/SampleApplication/.vscode/launchReactNative.js",
            "type": "node",
            "request": "launch",
            "args": [
                "ios"
            ],
            "runtimeArgs": [
                "--nolazy"
            ],
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out/"
        },
        {
            "name": "Launch Tests",
            "type": "extensionHost",
            "request": "launch",
            "runtimeExecutable": "${execPath}",
            "args": [
                "--extensionDevelopmentPath=${workspaceRoot}",
                "--extensionTestsPath=${workspaceRoot}/out/test"
            ],
            "stopOnEntry": false,
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out",
            "preLaunchTask": "build"
        },
        {
            "name": "Run mocha",
            "type": "node",
            "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
            "stopOnEntry": false,
            // Command line arguments passed to the program.
            "args": [
                "--ui",
                "tdd",
                // "--grep", "patternToFilterTestsBy",
                "out/test/debugger/**/*.test.js",
                "out/test/common/**/*.test.js"
            ],
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": null,
            "env": {
                "NODE_ENV": "development"
            },
            "sourceMaps": true,
            "outDir": "${workspaceRoot}/out"
        }
    ]
}