{
    // Use IntelliSense to learn about possible Node.js debug 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": "Debug Mocha tests",
            "program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
            "stopOnEntry": false,
            "args": [
                "-t",
                "10000",
                "--reporter",
                "spec",
                "--ui",
                "tdd",
                "--require",
                "ts-node/register",
                "./test/**/*.test.js"
            ],
            "cwd": "${workspaceRoot}",
            "preLaunchTask": "ts-build",
            "runtimeArgs": [
                "--nolazy"
            ],
            "console": "internalConsole",
            "sourceMaps": true
        },
        {
            "type": "node",
            "request": "attach",
            "name": "Debug running App",
            "address": "localhost",
            "port": 5858,
            "sourceMaps": true,
            "restart": true
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Debug launch app",
            "program": "${workspaceRoot}/src/index.js",
            "stopOnEntry": false,
            "cwd": "${workspaceRoot}",
            "preLaunchTask": "ts-build",
            "runtimeArgs": [
                "--nolazy"
            ],
            "console": "internalConsole",
            "sourceMaps": true
        }
    ]
}