Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 04, 2008 07:52 PM by TATWORTH
Jan 04, 2008 06:52 PM|LINK
I've gotten used to using Console.Writeline() for my debugging messages. Either my personal machine is set up differently or I've only tried this on WinForms apps because when I do this on my work machine, the output disappears into the aether. Console.WriteLine
writes to the standard output by default which has worked fine in the past (ie with WinForms projects). So I've got a couple of questions:
1) Where is Console.WriteLine's output going to by default with an ASP.NET app, or rephrased, what is the standard out for ASP.NET apps?
2) How does Debug.WriteLine differ if and when Console.WriteLine is directing its output towards the debug output window? My guess would be that the implementation is nearly identical save the default output streams- correct me if I'm wrong.
Jan 04, 2008 07:52 PM|LINK
They are similar. Some ASP.NET developers use Response.Write to output debugging information to the rendered form. Other developers output debug information to a custom event log.