How to view trace output?

  • Thread starter Thread starter mjaaa
  • Start date Start date
M

mjaaa

I am using lots of try/catch blocks and doing
System.Diagnostics.Trace.WriteLine(e) for the exceptions... how do I
view the trace now, as I know there are definately some exceptions
happening?
 
Well, I can only hope that if you are tracing your exception in the Catch,
you are also rethrowing the exception. Logging the exception and actually
handling the exception are two separate things.

Anyways, did you set up a TraceListener? I think by default it outputs to
the vs.net debug window - not very useful for your asp.net application.
You'll need to Trace.Listerners.Add() an EventLogListener or something.
More info at:
http://msdn.microsoft.com/library/d...fsystemdiagnosticstracelistenerclasstopic.asp

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top