MIMode doesn't use RemoteGdbTarget functionality when setup by .gdbinit
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
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
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/MIEngine
-
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
-
When debugging multiple inferiors with gdb, if one inferior exits the full debug session stopsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
question
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
MiEngine fails to start GDB 17Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Todos los issues de microsoft/MIEngine
Issues similares
-
[Tool] DirectBenchAbiertohas-image has-readme needs-attention new-tool repo-verified
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
shanselman/TinyToolTown#844 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 2 días
-
[i18n] 安装实例完成后的成功提示未正确本地化Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
PCL-Community/PCL-CE#3658 ·
Los mantenedores suelen responder en 1 día
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Altinn/altinn-auth#4359 ·
Los mantenedores suelen responder en 1 día
-
アプリ: チャット 優先: 中 提案
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
yksr-melt/Meltype#243 · 1 comentario ·
Los mantenedores suelen responder en 1 día