What?s the difference between the Debug class and Trace
class?

Answers were Sorted based on User's Feedback



What?s the difference between the Debug class and Trace class?..

Answer / vinay panchal

There are two Trace classes in the Microsoft .NET Framework
library: System.Diagnostics.Trace and
System.Web.TraceContext. These Trace classes are frequently
confused with each other. However, each one is used for a
specific purpose.

You typically use the System.Diagnostics.Trace class to
debug console applications or Windows Forms applications.
You use System.Web.TraceContext only in Microsoft ASP.NET
applications. To display Trace.Write statements on an
ASP.NET page from a Class Library, you must use the
System.Web namespace. The following examples describe how to
use Trace.Write from a Class Library in an ASP.NET application.

Is This Answer Correct ?    3 Yes 0 No

What?s the difference between the Debug class and Trace class?..

Answer / surojit

What’s the difference between the Debug class and Trace
class? Documentation looks the same. Use Debug class for
debug builds, use Trace class for both debug and release
builds.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Sharp Interview Questions

What is type checking in c#?

0 Answers  


Define xslt.

0 Answers  


How big is an int16?

0 Answers  


When was c# created?

0 Answers  


Which are the access modifiers available in c#?

0 Answers  






What is a linked list c#?

0 Answers  


Can you have parameters for static constructors?

0 Answers  


How many static constructors are allowed in a class?

0 Answers  


What is querystring in c#?

0 Answers  


can you declare an override method to be static if the original method is not static?

0 Answers   Siebel Systems,


What is the difference between c and c# programming?

0 Answers  


What is xml c#?

0 Answers  


Categories