{
    // 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": "Start Browser Backend",
            "program": "${workspaceRoot}/browser-app/lib/backend/main.js",
            "args": [
                "--loglevel=debug",
                "--port=3000",
                "--no-cluster"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "sourceMaps": true,
            "outFiles": [
                "${workspaceRoot}/node_modules/@theia/*/lib/**/*.js",
                "${workspaceRoot}/*/lib/**/*.js",
                "${workspaceRoot}/browser-app/lib/**/*.js"
            ],
            "smartStep": true,
            "internalConsoleOptions": "openOnSessionStart",
            "outputCapture": "std"
        },
        {
            "type": "node",
            "request": "launch",
            "name": "Start Electron Backend",
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
            "windows": {
                "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
            },
            "program": "${workspaceRoot}/electron-app/lib/<%= params.electronMainLocation %>/electron-main.js",
            "args": [
                "--loglevel=debug",
                "--hostname=localhost",
                "--no-cluster"
            ],
            "env": {
                "NODE_ENV": "development"
            },
            "sourceMaps": true,
            "outFiles": [
                "${workspaceRoot}/electron-app/lib/<%= params.electronMainLocation %>/electron-main.js",
                "${workspaceRoot}/electron-app/lib/backend/main.js",
                "${workspaceRoot}/*/lib/**/*.js",
                "${workspaceRoot}/node_modules/@theia/*/lib/**/*.js"
            ],
            "smartStep": true,
            "internalConsoleOptions": "openOnSessionStart",
            "outputCapture": "std"
        }
    ]
}
