If I use System.Diagnostics.Debug.WriteLine in a asp.net application, where
does the output go?
Is there any trace monitor application thar shows me the trace output?
maybe check SysInternals - they have a tool to display
debug infos of applications.
otherwise check TraceHandlers.
>If I use System.Diagnostics.Debug.WriteLine in a
asp.net application, where
>does the output go?
>Is there any trace monitor application thar shows me the
From your description, you're wondering where does the output from the
WriteLine go ?
As far as I know, the System.Diagnostics.Debug has a property called
"Listeners"which mantain the collection of listeners that is monitoring the
debug output. By default, there is a default listner "DefaultTraceListener"
in the collection. We can define our custom Listeners which derived from
the "TraceListener" Abstract class and add their instances into the
Debug.Listeners collection so that we can redirect the Ouput to whatever we
want. For detailed info you may view the following reference in MSDN:
In addition, in ASP.NET, you may also use the "Trace" feature which can
also log many trace info. You can use Trace.Write .. method within code
line to log some infos and which can be view in page level or application
level. For detailed on Trace, here are some reference in MSDN:
Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.
I checked resources you refered me. They are helpfull.
I was expectiong that I could find a 3rd party debug listenner to record all
debug outputs. It seems that there is not any. mybe it is not quite usefull
in practical world.
"Steven Cheng[MSFT]" <(E-Mail Removed)> wrote in message
> Hi Allan,
> Have you had a chance to check out the suggestions in my last reply or
> you got any further ideas on this issue? If you have anything unclear or
> there're anything else we can help, please feel free to post here. Thanks.
> Steven Cheng
> Microsoft Online Support
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> Get Preview at ASP.NET whidbey