microsoft / microsoft/vscode-cpptools
Attaching a debugger to cpptools on Mac doesn't work and disconnecting triggers a "crash" message
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
The steps don't work. It just shows the blue message below and then the yellow message (and crash message) after disconnecting:

and

Previously there was some issue with debugging on Mac in regards to the handling of the stdin on the main thread, but that seems to have gotten fixed back in 1.2.0.
The workaround is to use
run the following in a terminal window to attach lldb: lldb -p
Then run the following command in lldb to output all stacks: bt all
Seems like a debugger bug? I was using 1.12.3 (unreleased, although the debugger should be the same as 1.12.2).
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con le istruzioni collegate della wiki “Attaching debugger to cpptools or cpptools-srv” e riproduci il problema su macOS. Confronta il comportamento dell’attach con il workaround documentato per lldb e verifica che la disconnessione non produca più il messaggio giallo di crash.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100