Link to home
Create AccountLog in
Avatar of cshore11
cshore11

asked on

How can I view the output of a console application?

When writing a console application in Visual Studio, the output appears for only a fraction of a second.  Short of redirecting the output, how can I make the command line box persist so that I can read the output?
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
The command window in a console application persists while the application is running.
Make sure the application is not shutting down. Then handle the close (Press the X) properly.

As a side note; you can make a windows form application display a command window. it will persist until the window is closed.