Question:
What's the equivalent of System.Out.Println() in C# ?
How to output something to vs IDE terminal?
Expect:
Console.WriteLine() should does the same. But it didn't in WPF project.
Tried solutions:
I have tried Debug.WriteLine() Trace.WriteLine() and nothing work
Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
Debug.AutoFlush = true;
Debug.Indent();
and Yes, break point hit there and pass.
Ya i clicked on the Output window and selected Debug,
ya I running on Debug no Publish.
Software:
IDE -> Visual Studio 2017
OS -> Windows 10
Verbose description:
I notice there is no easy way to output anything to the vs IDE output terminal.
Doing some WPF project but Console.WriteLine(value) just show nothing to my IDE terminal.
for web core project and WPF project, I just cant show my thing to my IDE terminal.
I just want output something to my IDE terminal like Java + Eclipse style, not a separate console terminal, not logging, not any fancy stuffs. PLEASE HELP.
verbose back story:
I've do a bunch of Console App project, play around VS IDE and C# , all work fine as I want.
I just don't understand how software is develop in C# nor how Visual Studio work.
Wanted to do a Desktop Form App,
why there's WPF vs Windows Form App,
why Console.WriteLine() and Console.Out.WriteLine()
why someone would said Debug.Write() and some Trace.Write(), which neither one work
why there are so many similar options for 1 thing
which one is true? I keep research, I read book, I read doc, I learn nothing.
if possible point me to right direction too to all basic thing C# must know. thanks