How to read input when debugging in C++ in Visual Studio Code?
As stated in Here
if you enable "externalConsole":true in the launch.json then you will get a pop up console window that you can type in.
Use input (stdin) in debug console VScode
In launch.json, you can specify a file to connect to stdin via:
"args": ["<", "/path/to/your/stdin/file"]
Related Topics
How to Make Camera Follow a 3D Object in Opengl
Std::Locale Breakage on MACos 10.6 with Lang=En_Us.Utf-8
Scheduling Task in Using C++ on Linux and Windows Machine
Overloading Postfix and Prefix Operators
Boost Spirit X3: Parse into Structs
Access Violation Writing Location 0Xcccccccc
When to Mark a Function in C++ as a Virtual
C++ Over Qt:Controlling Transparency of Labels and Buttons
Dynamically Loading Static Library
Optimal Buffer Size for Write(2)
Why Doesn't Gcc Support Naked Functions
Interactive Console Programming for C/C++
Getting Errors While Compiling
Impact of Hundreds of Idle Threads
Is Returning Local Static Object Thread Safe for Pre-C++11 Compilers