{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Attach AE V1.2",
            "type": "cppdbg",
            "request": "attach",
            "program": "${workspaceRoot}/install/bin/kwdbts_server",
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        },
        {
            "name": "(gdb) Attach kwbase",
            "type": "cppdbg",
            "request": "attach",
            "program": "${workspaceRoot}/install/bin/kwbase",
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        },
        {
            "name": "(Go) Launch kwbase V2.0",
            "type": "go",
            "request": "launch",
            "cwd": "${workspaceRoot}/install/bin",
            "mode": "exec",
            "env": {"KWDB_ROOT":"${workspaceRoot}/install",
            "LD_LIBRARY_PATH":"/usr/local/lib:${workspaceRoot}/install/lib"},
            "program": "${workspaceRoot}/install/bin/kwbase",
            "args": ["start",
                    "--insecure",
                    "--listen-addr=0.0.0.0:20257",
                    "--http-addr=0.0.0.0:20080",
                    "--store=/home2/dev2/kwbase_data/n31",
                    "--join=0.0.0.0:20257"
                    ],
            "dlvFlags": [
                        "--check-go-version=false"
                    ]
        },
        {
            "name": "(gdb) Launch kwbase V2.0",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceRoot}/install/bin/kwbase",
            "args": ["start",
                    "--insecure",
                    "--listen-addr=0.0.0.0:20257",
                    "--http-addr=0.0.0.0:20080",
                    "--store=/home2/dev2/kwbase_data/n31",
                    "--join=0.0.0.0:20257"
                    ],
            "stopAtEntry": false,
            "cwd": "${workspaceRoot}/install/bin",
            "environment": [{"name":"KWDB_ROOT", "value":"${workspaceRoot}/install"},
                            {"name":"LD_LIBRARY_PATH", "value":"${workspaceRoot}/install/lib"}],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                //{"text": "set detach-on-fork off"},
                //{"text": "set follow-fork-mode child"},
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        },
        {
            "name": "(Go) Attach to Process",
            "type": "go",
            "request": "attach",
            "mode": "local",
            "processId": 0
        }
]
}