Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger settings not picked up from launch.json #59

Open
me21 opened this issue Sep 14, 2021 · 1 comment
Open

Debugger settings not picked up from launch.json #59

me21 opened this issue Sep 14, 2021 · 1 comment

Comments

@me21
Copy link

me21 commented Sep 14, 2021

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants