{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/bin/firmware.elf",
            "args": [],
            "stopAtEntry": true,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "MIMode": "gdb",
            "miDebuggerPath": "arm-none-eabi-gdb",
            "debugServerPath": "JLinkGDBServerCLExe",
            "debugServerArgs": "-device nrf52832_xxaa -if swd -port 2331",
            "serverStarted": "Listening on TCP/IP port 2331",
            "logging": {
                "engineLogging": true,
                "exceptions": true,
                "moduleLoad": true,
                "programOutput": true,
                "trace": true,
                "traceResponse": true
            },
             "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb.",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": false
                },
                {
                    "description": "Connect to gdb server.",
                    "text": "target remote localhost:2331",
                    "ignoreFailures": false
                },
                {
                    "description": "Load executable into debugger.",
                    "text": "file ${workspaceFolder}/bin/firmware.elf",
                    "ignoreFailures": false
                },
                {
                    "description": "Load executable to target TCM",
                    "text": "load",
                    "ignoreFailures": false
                }
             ]
        }
    ]
}