Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

MIMode doesn't use RemoteGdbTarget functionality when setup by .gdbinit

Abierto
#1,546 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
csharp
Área
devtools

Línea de trabajo

Empieza siguiendo la decisión sobre el destino remoto a través de IsRemoteGdbTarget() y la ruta de configuración de lanzamiento de cppdbg descrita en el issue. Comprueba cómo gdb_wrapper.sh y .gdbinit establecen la conexión remota y, después, verifica que una configuración forceRemoteConnection hace que la UI de Pause use el comportamiento del destino remoto sin requerir miDebuggerServerAddress.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

In order to make our debugging environment reusable across multiple systems and projects, we make heavy use of .gdbinit and the python support that allows. In this way, the environment can be determined without having to add custom details to a users launch configuration. We can just set the launch configuration generically, and it will works for everyone in the project without changes. It also makes the launch configuration easy to configure, as the appropriate gdb environment is automatically selected and configured, and all the custom details are internal. eg;

    {
      "name": "Debug App,
      "type": "cppdbg",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "program": "${workspaceFolder}/build/debug-linux-armv8-static/app",
      "args": [],
      "stopAtEntry": true,
      "externalConsole": false,
      "MIMode": "gdb",
      "miDebuggerPath": "${workspaceFolder}/debug/gdb_wrapper.sh",
      "miDebuggerArgs": "build/debug-linux-armv8-static/app",
    },

This all works great, apart from the fact that when the gdb_wrapper.sh and .gdbinit connect to a remote target, and MIEngine assumes it is a local connection because no miDebuggerServerAddress was provided. This results in the Pause UI using the incorrect method to break into the application. The launch configuration is committed in the git repo, and the server address is custom to the user, so we don't want to provide it.

Would it be possible to add a field that tells the MIEngine that a remote target was used, even though it was configured by the cppdbg plugin, but rather by gdb?

In the snippet above, I know I'm debugging a remote armv8 application, and so if something like "forceRemoteConnection": true, could be specified, and the MIEngine used that in IsRemoteGdbTarget(), then the cppdbg debug UI would work in this generic case.

Lenguaje dominante
C#
Estrellas
859
Forks
233
Merge medio
10 h 31 min
PR fusionados (30 d)
2

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Sin Dockerfile ni archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin 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.

Más de microsoft/MIEngine

Todos los issues de microsoft/MIEngine

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.