{
    // 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) LogSimulator",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/NaoTHSoccer/dist/Native/logsimulator",
            // add the logfile as argument
            "args": ["mylogifle.log"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/NaoTHSoccer/",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}
{
    // 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 LogSimulator",
            "type": "cppdbg",
            "request": "attach",
            "program": "${workspaceFolder}/NaoTHSoccer/dist/Native/logsimulator",
            "processId": "${command:pickProcess}",
            "MIMode": "gdb"
        },
        {
            "name": "(gdb) LogSimulator",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/NaoTHSoccer/dist/Native/logsimulator",
            // add the logfile as argument
            "args": ["mylogifle.log"],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/NaoTHSoccer/",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}
Add debug configuration to attach to LogSimulator
Add debug configuration to attach to LogSimulator
