denis-shienkov / vscode-qbs

Qbs Tools extension for VSCode
MIT License
24 stars 12 forks source link

Debugger settings not picked up from launch.json #59

Open me21 opened 3 years ago

me21 commented 3 years ago

I have the following .vscode/launch.json file:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(gdb) Запустить",
            "type": "cppdbg",
            "request": "launch",
            "program": "helloworld2",
            "args": [],
            "stopAtEntry": false,
            "cwd": "~",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "targetArchitecture": "arm",
            "pipeTransport": {
                "pipeCwd": "/usr/bin",
                "pipeProgram": "/usr/bin/ssh",
                "pipeArgs": [
                    "debian@192.168.7.2"
                ],
                "debuggerPath": "/usr/bin/gdb"
            },
            "setupCommands": [
                {
                    "description": "Включить автоматическое форматирование для gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ]
        }     
    ]
}

It works correctly when I press F5. However, when I click Debug button in the bottom blue bar of VSCode window, I get the following output in the terminal:

&"warning: GDB: Failed to set controlling terminal: \320\236\320\277\320\265\321\200\320\260\321\206\320\270\321\217 \320\275\320\265 \320\277\320\276\320\267\320\262\320\276\320\273\320\265\320\275\320\260\n"
[1] + Done                       "/usr/bin/gdb" --interpreter=mi --tty=${DbgTerm} 0<"/tmp/Microsoft-MIEngine-In-bqgmcweq.jmx" 1>"/tmp/Microsoft-MIEngine-Out-wthb4aog.leh"
denis-shienkov commented 1 year ago

Sorry, for delay. So, could you please test it now? And what exactly settings are not picked up?