microsoft / microsoft/vscode-cpptools
Attaching a debugger to cpptools on Mac doesn't work and disconnecting triggers a "crash" message
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
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).
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den verlinkten Wiki-Anweisungen „Attaching debugger to cpptools or cpptools-srv“ und reproduziere den Fehler unter macOS. Vergleiche das Attach-Verhalten mit dem dokumentierten lldb-Workaround und verifiziere, dass das Trennen keine gelbe Absturzmeldung mehr erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100