microsoft / microsoft/vscode-cpptools
[cppvsdbg] Allow stdin to the debuggee
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
Type: Debugger
Describe the bug
- OS and Version: Windows 10 (1903)
- VS Code Version: 1.39.2
- C/C++ Extension Version: 0.26.1
- Other extensions you installed: CMake Tools (1.2.1)
- A clear and concise description of what the bug is.
When launching the console debugger, COUT text is displayed correctly. CIN input is not passed to the program.
To Reproduce
launch.json:
launch.json.txt
main.cpp:
main.cpp.txt
Debug console output...
Loaded 'D:\Users\micro\Desktop\workspace\ITP365\itp365_20201_hw01\build\main.exe'. Symbols loaded.
Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\msvcp140d.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\vcruntime140d.dll'. Cannot find or open the PDB file.
Loaded 'C:\Windows\System32\ucrtbased.dll'. Cannot find or open the PDB file.
The thread 11604 has exited with code 0 (0x0).
Please select...
1. Encrypt
2. Decrypt
?. Quit
1
2
The thread 32696 has exited with code 0 (0x0).
The thread 18488 has exited with code 0 (0x0).
The program '[4716] main.exe' has exited with code 0 (0x0).
Additional context
I'm teaching a C++ data structures class in January. I'd really like to use VSCode (instead of VS and XCode). But I need local debugging working.
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 angehängten launch.json und main.cpp unter Windows 10 und untersuche anschließend den Eingabepfad der cppvsdbg-Konsole. Bestätige, dass während einer Konsolen-Debugsitzung eingegebene Eingaben das cin des Debuggee erreichen; abgeschlossen, wenn das Beispielprogramm stdin empfängt und verarbeitet, anstatt ohne stdin zu beenden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cpp, typescript
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100