microsoft / microsoft/vscode-cpptools
[cppvsdbg] Allow stdin to the debuggee
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema con i file launch.json e main.cpp allegati su Windows 10, quindi analizza il percorso di input della console cppvsdbg. Conferma che l'input immesso durante una sessione di debug della console raggiunga il cin del debuggee; completato quando il programma di esempio riceve ed elabora stdin invece di uscire senza di esso.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, typescript
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100