microsoft / microsoft/vscode-cpptools

Centos/RHEL7: Unable to start debugging. Failed to initialize debugger terminal.

Abierto
#2,489 22 comentarios 0 reacciones 1 asignado Ver en GitHub

@pieandcakes ya está trabajando en esto.

Desde el 7/9/2018.

debugger
Lenguaje dominante
TypeScript
Estrellas
6.2k
Forks
1.7k
Merge medio
14 h 46 min
PR fusionados (30 d)
61

Descripción

Type: Debugger
Input information below

Please review existing issues and our documentation at https://github.com/Microsoft/vscode-cpptools/tree/master/Documentation prior to filing an issue.

Describe the bug
-Centos 7.3, 7.4, 7.5:

  • VS Code Version: 1.26.1

  • C/C++ Extension Version: 017.3 ... 0.18.1

  • Other extensions you installed (and if the issue persists after disabling them): cmake-tools (problem exists also without)

  • when trying to strart debugging a window pops up:
    Unable to start debugging. Failed to initialize debugger terminal.
    To Reproduce
    a hello world cpp app
    try to debug it with standard launch.json:

    "version": "0.2.0",
    "configurations": [
    {
    "name": "(gdb) fbMon",
    "type": "cppdbg",
    "request": "launch",
    "program": "${workspaceRoot}/bin/x64/release/a.out",
    "args": [
    "-s"
    ],
    "stopAtEntry": true,
    "cwd": "${workspaceRoot}",
    "environment": [],
    "externalConsole": false,
    "MIMode": "gdb",
    "miDebuggerPath": "/usr/bin/gdb",
    "setupCommands": [
    {
    "description": "Enable pretty-printing for gdb",
    "text": "-enable-pretty-printing",
    "ignoreFailures": true
    }
    ]
    }
    ]
    }
    Additional context

  1. reading through other, similar complaints I found that this might bew related to gnome-terminal. My use case is a remote ssh to the centos machine in question. vscode is run over remote ssh with X-forwarding. I tried launching gnome-terminal from my ssh console: that works. However, if try launching gnome terminal from inside the vscode terminal window, that fails with an error: Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Unknown or unsupported transport “disabled” for address “disabled:”

  2. I tried downgrading the cpp extension to 17.3 but that too isn't working. I have been using vscode on centos7 for quite a while now (since it first came out), with varying degree of success (glibc 2.17 issues, etc.) and the debugger did use to work. I admit I haven't debugged in awhile, so I can't say when this issue has crept in, but seems before 0.17.3.

  3. Update: As I was pretty sure I was debugging in May this year, I downgraded to extension V. 0.16.0 that didn't help. I had to downgrade vscode itself to 1.23 . That works also with the latest version of the extension (0.18.1). Now of course, all sorts of other things are broken.

  4. Working my way back up 1.24.1, 1.25.1, it shows that the problem appeared in the July version of vscode: 1.26.1. The question is, should this be reported/handled here or with the vscode people (who would that be?)

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.