Skip to content

GDB: "warning: GDB: Failed to set controlling terminal: Operation not permitted" and not stopping on breakpoints #29

@paradx

Description

@paradx

I recently updated my vs codium and beyond-debug.
Now I get a '''warning: GDB: Failed to set controlling terminal: Operation not permitted''' in my "beyond-debug terminal" and the breakpoints are ignored. The program is still running (gdb seems to be not correctly attached).

The issue is widely encountered but none of the solutions seem applicable:
microsoft/vscode-cpptools#11173 -> not running remotely on vscode-server
microsoft/VSLinux#119 -> not really comparable, no issue with logging | solution did not work

VSCodium: 1.102.14746
gdb: 16.3
Beyond-debug: 0.9.15

Running gdb directly from the terminal works fine.
The launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
			"type": "by-gdb",
			"request": "launch",
			"name": "Launch(gdb)",
			"program": "progName",
			"programArgs": "-sS -f ${workspaceRoot}/testfile.nc",
			"cwd": "${workspaceRoot}/build",
		}
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions