microsoft / vscode-mono-debug

A simple VS Code debug adapter for mono
Other
159 stars 173 forks source link

Can't launch debug (sh: 1 [: Linux: unexpected operator) #49

Open aremmell opened 5 years ago

aremmell commented 5 years ago

This appears to be a regression, and someone filed an issue on the main VS Code repo, and the developer just closed it and asked them to file it here. I don't think they did, so:

Platform 4.15.0-33-generic #36~16.04.1-Ubuntu SMP (x64)

Build info Version: 1.26.1 Commit: 493869ee8e8a846b0855873886fc79d480d342de Date: 2018-08-16T18:34:20.517Z Electron: 2.0.5 Chrome: 61.0.3163.100 Node.js: 8.9.3 V8: 6.1.534.41 Architecture: x64

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Remote Debug",
            "type": "cppdbg",
            "request": "attach",
            "program": "/usr/src/build/bin/qd",
            "processId": "${command:pickRemoteProcess}",
            "targetArchitecture": "arm",
            "pipeTransport": {
                "debuggerPath": "/usr/bin/gdb",
                "pipeProgram": "/usr/bin/ssh",
                "pipeArgs": ["root@tom"],
                "pipeCwd":"${workspaceFolder}"
            },
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }
    ]
}

Resulting output (says remote-attach)

Linux
sh: 1: [: Linux: unexpected operator
sh: 1: [: Linux: unexpected operator