{
    // 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": "Connect to server",
            "type": "go",
            "request": "attach",
            "mode": "remote",
            "remotePath": "${workspaceFolder}",
            "port": 56379,
            "host": "127.0.0.1"
        },
        {
            "name": "Server",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/main.go",
            "buildFlags": [
                "-ldflags='-X 'github.com/stateful/runme/internal/version.BuildVersion=99.9.9''",
            ],
            "args": [
                "server",
                "--dev",
                "--address",
                "127.0.0.1:9999",
                "--tls",
                "/tmp/runme/tls",
            ]
        },
        {
            "name": "CLI",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/main.go",
            "buildFlags": [
                "-ldflags='-X 'github.com/stateful/runme/internal/version.BuildVersion=99.9.9''",
            ],
            "args": [
                "--version",
            ]
        }
    ]
}
