System.Diagnostics.Trace.WriteLine() skipped over

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
 
M

Mike Placentra II

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top