microsoft / microsoft/vscode-cpptools

Simplify debug

Offen
#8,224 3 Kommentare 2 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

Hi VS Code PM here 👋

I just tried setting up C++ with VS Code following this tutorial. The flow is actually nice, but here's some feedback on what I think we could improve:

  1. C++ should consider contributing to the Editor title area menu, such that a Play button would appear in the Editor Title area. Example how to do this. I am not sure if it would be too noisy to have this on every file C++.
  2. You aggressively generate tasks.json and launch.json and you do not provide configurations from memory. Consider providing a dynamic resolveDebugConfiguartion that will provide a launch configuration on the fly. Example
  3. If you decide to stick with launch.json generation consider to simplify it. For example stopOnEntry field could be removed.
  4. If I have a purple no folder VS Code it is impossible to debug a simple C++ file

I would love if we could improve this experience, since we see in user studies that users want a confirmation that VS Code can do C++, and providing an easy way to run and debug simple C++ files would be great for this.

Let me know if I can help somehow. I am also open to a quick 30 min meeting where we can discuss about the new cool VS Code debug features that C++ could potentially adopt. And you could let us know what are your biggest asks from the VS Code debugger.

fyi @WardenGnaw @weinand

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 dem C++-Setup-Tutorial und vergleiche den aktuellen Ablauf mit tasks.json und launch.json mit den verlinkten Beispielen aus vscode-mock-debug package.json und src/activateMockDebug.ts. Kläre zuerst, welche der vier vorgeschlagenen Verbesserungen in den Umfang fällt; fertig ist die Arbeit, wenn eine klar definierte, getestete Vereinfachung des ausgewählten Debugging-Ablaufs vorliegt, einschließlich des Falls ohne Ordner, falls dieser ausgewählt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
cpp, typescript, vscode
Bereich
developer-experience, devtools
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

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