microsoft / microsoft/vscode-cpptools

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

Offen
#9,810 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

debugger
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Ö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

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.