microsoft / microsoft/vscode-cpptools
[Win10] After __debugbreak(), the debugger no longer works correctly
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
Environment:
- tool-chain: C++ tool-chain that comes with Visual Studio 2015.
- VSCode 1.12.2
- Windows 10.
Steps to reproduce:
- Add __debugBreak somewhere in your C++ code.
- Start a debugging session until the execution stops in the __debugBreak() call.
- From this moment on, try to go step-by-step in the code (using F10)
Expected result:
The debugger should step by step into the code, and the execution cursor (yellow arrow at the left side of the editor pane while in the Debugger view) should show the currently executed line.
Actual result:
The debugger goes step by step into the code, but the execution cursor disappears after the first F10 key-press. After this point you don't know where the execution cursor is.
Recovery:
The only way to recover from this is to look into the call-stack view, select the current thread, and double click the function at the top of the call-stack. After this action, the execution cursor reappears, but only until you press F10 again, when it disappears.
Mention:
This only happens after __debugBreak(). For a normal breakpoint added with F9 the debugger works correctly.
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
Reproduziere das Problem mit der angegebenen Umgebung aus Visual Studio 2015, VS Code 1.12.2 und Windows 10 anhand eines C++-Programms, das __debugBreak() enthält, und vergleiche das Einzelschrittverhalten mit einem normalen F9-Haltepunk. Verfolge die Aktualisierungen des aktuellen Threads und des Ausführungsorts im Debugger nach F10; abgeschlossen ist die Aufgabe, wenn der Ausführungscursor nach jedem Schritt sichtbar bleibt und die korrekte Position anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript, vscode
- 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