• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1544
  • Last Modified:

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?
0
cshore11
Asked:
cshore11
1 Solution
 
surajgupthaCommented:
do a console.readline() which will wait on user input. that way u get to see what is displayed.
0
 
ColemssCommented:
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.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now