Search code examples
c++visual-studio-2010unit-testingconsolevisual-studio-express

Microsoft Visual Studio: How to keep the console open without manually reading input?


I'm writing some C++ with Microsoft Visual Studio 2010 Express, and I'm wondering if there is a way to display command output somewhere in the IDE instead of an external console window, or at least keep that window open.

Reading something from STDIN would work for a console application, but this is a unit test case and I don't want to modify the generated main function. Is there another way?


Solution

  • Ctrl + F5 for quick test. The key combination keeps the console open until you close it.