microsoft / microsoft/vscode-cpptools

Debugger won't start on Windows arm64 remoting to WSL

Aperta
#13,246 23 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug debugger help wanted regression
Lingua principale
TypeScript
Stelle
6.2k
Fork
1.7k
Merge medio
14h 46m
PR unite (30g)
61

Descrizione

Environment
  • OS and version: Windows 11 24H2 26100.2894, arm64 (Surface Pro X)
  • VS Code: 1.97.0
  • C/C++ extension: 1.23.5
  • OS and version of remote machine (if applicable): Local WSL, Ubuntu 22.04
  • GDB / LLDB version: gdb 14.0.50.20221220-git
Bug Summary and Steps to Reproduce

Bug Summary: When I start a debug launch, I can sometimes see the debugging icons in the top center for a brief time together with the wait icon on the debug mode icon on the left vertical bar, but very quickly the icons and the wait icon disappear as if nothing happened without any further information. I have tested multiple programs and none works. I tried the logging suggestions below, but no information is ever printed out in either debug console, or the output windows.

This might be due to recent update to WIn 11 24H2.

I have verified that the app exists and that gdb launched manually from wsl terminal works and debugs the app as expected.

Debugger Configurations
{
    // 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": [
        {
            "name": "graphics-app [fantasy]",
            "type": "cppdbg",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "program": "${workspaceFolder}/build/cartridges/tests/display-png",
            "args": [],
            "stopAtEntry": false,
            "environment": [{ "name" : "DISPLAY", "value" : "0:0"}],
            "externalConsole": false,
            "MIMode": "gdb",
            "miDebuggerPath": "/usr/bin/gdb",
        },
    ]
}
Debugger Logs
None. Even when the logging above enabled, I can find no trace of an error.
Other Extensions

I do not think they are applicable. They do not seem to affect the problem.

Additional Information

I will behappy to provide any other information you ask for. Thanks a lot!

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo la configurazione di avvio cppdbg fornita su Windows 11 arm64 con Ubuntu WSL locale, utilizzando le versioni indicate di VS Code e dell’estensione C/C++. Confronta l’avvio non riuscito con l’esecuzione manuale di gdb in WSL; il lavoro è completato quando il debugger configurato si avvia e fornisce un output utile quando non riesce.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
vscode
Ambito
devtools, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Da chiarire
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.