System.Diagnostics.Trace.WriteLine() skipped over

  • Thread starter Thread starter samueltilden
  • Start date Start date
S

samueltilden

I am writing one particular web app in ASP.NET 2.0 in debug mode.

Even when I step through the code, the IDE skips over every occurrence
of System.Diagnostics.Trace.WriteLine(), but honors
System.Diagnostics.Debug.WriteLine().

I have other web app's that run fine, Trace.WriteLine() actually
writes to the output window and my TraceListener catches it.

What can I configure / set so that this web app honors
Trace.Writeline()?

Thanks
 
Have you set Trace.IsEnabled?

You can also set it at application-level in web.config.

<configration>
<system.web>
<trace enabled="true" />

-Michael Placentra II
 
Back
Top