{
    // 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": "portmaster-core",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/cmds/portmaster-core",



            "windows": {
                "args": ["--bin-dir=C:\\Program Files\\Portmaster", "--log-stdout", "--log", "trace"]                
            },
            "linux": {
                "console": "integratedTerminal", // required to debug as root
                "asRoot": true, // required to debug as root

                "args": ["--bin-dir=/usr/lib/portmaster", "--log-stdout", "--log", "trace"]
                
            },            
        },
        {
            "name": "portmaster-core (NO INTERCEPTION)",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}/cmds/portmaster-core",

            "windows": {
                "args": ["--bin-dir=C:\\Program Files\\Portmaster", "--log-stdout", "--log", "trace", "--disable-interception=true"]
            },
            "linux": {
                "console": "integratedTerminal", // required to debug as root
                "asRoot": true, // required to debug as root
                
                "args": ["--bin-dir=/usr/lib/portmaster", "--log-stdout", "--log", "trace", "--disable-interception=true"]
            },
        }
    ]
}