microsoft / microsoft/vscode-cpptools

Attaching a debugger to cpptools on Mac doesn't work and disconnecting triggers a "crash" message

Aperta
#9,810 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

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

Descrizione

See https://github.com/microsoft/vscode-cpptools/wiki/Attaching-debugger-to-cpptools-or-cpptools%E2%80%90srv .

The steps don't work. It just shows the blue message below and then the yellow message (and crash message) after disconnecting:
image
and
image

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

  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 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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.