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.
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.
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
jm2
Member
27 Points
52 Posts
Console.WriteLine("..."); ...where's my output?
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.
TATWORTH
All-Star
72415 Points
14017 Posts
MVP
Re: Console.WriteLine("..."); ...where's my output?
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.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239