microsoft / microsoft/vscode-cpptools

gdb issue

Open
#14,466 11 comments 2 reactions 1 assignee View on GitHub

@WardenGnaw is already working on this.

Since May 21, 2026.

bug debugger
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.