{
    // 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": "Mocha Tests",
            "cwd": "${workspaceRoot}",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha",
            "windows": { "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/mocha.cmd" },
            "runtimeArgs": [
                "--no-timeouts",
                "${workspaceRoot}/test/"
            ],
            // "env": {
            //     "ETHRPC_TEST_HTTP_ADDRESS": "https://eth3.augur.net:443",
            //     "ETHRPC_TEST_WS_ADDRESS": "wss://ws.augur.net:443"
            // },
            "internalConsoleOptions": "openOnSessionStart",
            "outFiles": [
                "${workspaceRoot}/node_modules/ethereumjs-blockstream/**/*.js"
            ]
        },
        {
            // docker run --rm -p 9229:9229 --name=ethrpc ethrpc --debug-brk --inspect test/stub-node-only.js
            "type": "node2",
            "request": "attach",
            "name": "Attach to Docker",
            "port": 9229,
            "sourceMaps": false,
            "localRoot": "${workspaceRoot}",
            "remoteRoot": "/ethrpc"
        }
    ]
}
