VSCode - 远程C ++调试

时间:2018-03-06 18:32:51

标签: gdb visual-studio-code

所以,我已经尝试了几天来设置vscode以使用针对远程RPi(计算模块)的集成调试器。到目前为止我没有运气。

我的launch.json

{
        "name": "1w-Remote(2)",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceRoot}/build/examples/onewire/onewire",
        "miDebuggerPath": "/usr/bin/gdb-arm-7.12",
        "stopAtEntry": false,
        "cwd": "${workspaceRoot}",
        "environment": [],
        "launchCompleteCommand": "None",
        "externalConsole": true,
        "linux": {
          "MIMode": "gdb"
        },
        "osx": {
          "MIMode": "gdb"
        },
        "windows": {
          "MIMode": "gdb"
        },
        "logging": {
            "engineLogging": true,
            "trace": true,
            "exceptions": true,
            "traceResponse": true
        },
        "setupCommands": [
            {
                "text": "set mi-async off"
            },
            {
                "text": "target remote 10.106.0.157:8081"
            }
        ]
}

似乎,一旦我解决了一个问题,一个新问题就会出现。是否有任何人可以启发我的过程来设置它?

0 个答案:

没有答案