473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

System.Diagnostics.Trace.WriteLine() skipped over

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

Oct 12 '07 #1
1 5781
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

On Oct 12, 2:30 pm, samueltil...@gmail.com wrote:
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
Oct 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raj Dhrolia | last post by:
Hi, In one of my method, I want to know the class/function that called/invoked this method. i.e. i have a function named Method1() in class1. I want "ClassX.MethodX()" in Method1(), when...
4
by: A.M | last post by:
Hi, 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? Thanks, Allan
1
by: Patrick | last post by:
When Tracing in ASP.NET, the IIS process (on IIs5.1) is locking on the Trace file, and I can't read the trace file without restarting the IIS: Even the following does NOT work (how could I fix...
0
by: Frederic ESNOUF \(MVP-ISA\) | last post by:
Hi, I use System.Diagnostics.Trace.WriteLine command in my applications to debug the code (VB). When the application is compiled, I use debugview from sysinternals to trap these debug...
10
by: Mae Lim | last post by:
Dear all, I'm new to C# WebServices. I compile the WebService project it return no errors "Build: 1 succeeded, 0 failed, 0 skipped". Basically I have 2 WebMethod, when I try to invoke the...
1
by: Oleg Ogurok | last post by:
Hi there, My ASP.NET 2.0 app uses an external assembly that calls methods like Trace.Write() and Trace.TraceError() of namespace System.Diagnostics. I need to enable tracing in my web app so...
7
by: gilad | last post by:
Hi, I would like to add some code to system.data so I can trace calls to SqlConnection class. I used ildasm.exe, got the il code, added some of mine and used the ilasm.exe to get a new assembly. ...
12
by: Zytan | last post by:
I use System.Diagnostics.StackTrace to get the stack trace of the current function, to print out the function's name to the log, and sometimes it shows that a function that doesn't even write to...
0
by: =?Utf-8?B?ZG90TmV0RGF2ZQ==?= | last post by:
I'm wondering why this line: System.Diagnostics.Trace.WriteLine("Some Text"); Does not work in C# in an ASP.NET application? While this one does: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.