Skip to content

gdb issue #14466

@Roba85

Description

@Roba85

Environment

  • OS and version: Ubuntu 24.04
  • VS Code: 1.120
  • C/C++ extension: Microsoft c/c++
  • GDB / LLDB version: 15.1

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:
Launch the debugger in the described environment, the debugger freezes and this error is shown:

&"warning: GDB: Failed to set controlling terminal: Operation not permitted\n"

Debugger Configurations

launch.json:
"configurations": [
        {
            "name": "C++ Debug",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/${fileBasenameNoExtension}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [],
            "externalConsole": true,
            "MIMode": "gdb",
            "miDebuggerPath": "/usr/bin/gdb",
            "setupCommands": [
                {
                    "description": "Disable startup with shell",
                    "text": "set startup-with-shell off",
                    "ignoreFailures": false
                }
            ]
        }
    ]

Debugger Logs

N/A

Other Extensions

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdebuggerhelp wantedCan be fixed in the public (open source) repo.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions