471,326 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

output box (cmd)

when a class is compiled and run,(simple hello world for example) the command
box flashes up with whatever the program did, then disapears! so never able
to see for more than a fraction of a second what program output was.
visual studio 2005 express.
any setting for keeping command prompt box open after program finishes
executing?
Jan 5 '06 #1
1 1510
If you are talking about when playing via the debugger, then adding
Console.ReadLine() at the end might suffice - then press Return to exit the
console. There might be a prettier way, but it works (I'm the eternal
pragmatist when it comes to debugging...). You could also wrap in in an #if,
i.e.

// your "Main" function...
#if DEBUG
Console.ReadLine();
#endif
// end of your "Main" function...

Marc

"scottmac" <sc******@discussions.microsoft.com> wrote in message
news:A6**********************************@microsof t.com...
when a class is compiled and run,(simple hello world for example) the
command
box flashes up with whatever the program did, then disapears! so never
able
to see for more than a fraction of a second what program output was.
visual studio 2005 express.
any setting for keeping command prompt box open after program finishes
executing?

Jan 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Savas Ates | last post: by
4 posts views Thread by laurenq uantrell | last post: by
3 posts views Thread by juststarter | last post: by
1 post views Thread by csgraham74 | last post: by
3 posts views Thread by leesquare | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.