Невозможно начать отладку неожиданного вывода GDB из командной среды CD - PullRequest
0 голосов
/ 29 мая 2019

Я хочу запустить GDB в vscode. Я хочу отладить мой код c, используя gdb в vscode, но получаю следующую ошибку:

невозможно запустить отладку неожиданного вывода GDB из командной среды cd У меня установлен GDB на WSL.

вот мой lauch.json

{
// 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) Launch",
        "type": "cppdbg",
        "request": "launch",
        "program": "${workspaceFolder}\\bin\\main",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": true,
        "MIMode": "gdb",
        "setupCommands": [
            {
                "description": "Enable pretty-printing for gdb",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
        ],
        "pipeTransport": {
            "pipeCwd": "",
            "pipeProgram": "c:\\windows\\sysnative\\bash.exe",
            "pipeArgs": ["-c"],
            "debuggerPath": "/usr/bin/gdb"
        },
        "sourceFileMap": {
            "/mnt/z": "z:\\"
        }
    }
]

}

Я не могу отладить свою программу

...