Having the output of a Console App in Visual Studio instead of the Console

Posted by devoured elysium on Stack Overflow See other posts from Stack Overflow or by devoured elysium
Published on 2010-03-30T02:57:01Z Indexed on 2010/03/30 3:03 UTC
Read the original article Hit count: 798

Filed under:
|
|

alt text

When doing "Console" apps in Java with Eclipse, I see the output being put in a text box on the IDE itself, instead of having a Console popping up like in Visual Studio. This comes in handy, as even after the program has exited, I can still make good use of the text that was written in it, as it doesn't get erased until I run it again. Is it possible to achieve anything like that with Visual Studio? I know that instead of doing

System.Console.WriteLine(str);

I can do

System.Diagnostics.Debug.WriteLine(str);

but it is not quite the same thing, as you get a lot of "junk" in the Output window, as all the loaded symbols and such.

Even better, is it possible to have everything done in the IDE itself, when you run your app, instead of having the Console running?

Thanks

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about console