Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 a di class?

0 Answers  


Is java better than c sharp?

0 Answers  


Can you declare the override method static while the original method is non-static?

2 Answers   Mind Tree,


Why are there five tracing levels in System.Diagnostics.TraceSwitcher?

2 Answers   Siebel Systems,


List down the reason behind the usage of c# language.

0 Answers  






What is the purpose of escape sequence?

0 Answers  


What is difference between array and collection?

0 Answers  


Code to run exe like mspaint,autocad etc in asp.net.

2 Answers  


What are properties and indexer?

3 Answers   TCS,


What are the main reasons to use c# language?

0 Answers  


Why is c# a good programming language?

0 Answers  


what is the difference between c-sharp and vb.net?What kind of security or advances we find in both languages?

3 Answers   DataPoint,






Categories