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 / abhi

Documentation looks the same. Use Debug class for debug
builds, use Trace class for both debug and release builds.

Is This Answer Correct ?    5 Yes 0 No

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

Answer / kabita

Debug Class provides a set of methods and properties that
help debug your code. If you use methods in the Debug class
to print debugging information and check your logic with
assertions, you can make your code more robust without
impacting the performance and code size of your shipping
product. In Visual Studio 2005 projects, creating a debug
build enables Debug.


You can use the properties and methods in the Trace class
to instrument release builds. Instrumentation allows you to
monitor the health of your application running in real-life
settings. Tracing helps you isolate problems and fix them
without disturbing a running system.
In Visual Studio 2005 projects, Trace is enabled by default
for both release and debug builds, so code is generated for
all trace methods in both release and debug builds.
Therefore, you can use Trace to instrument release builds.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Sharp Interview Questions

How you will create satellite assemblies?

0 Answers  


HOw to judge a person for a team if you are allowed to ask only 2 questions to him?

2 Answers   TCS,


How will U encapsulate button trigger event into text_box event of Pressing Enter key?

3 Answers   TCS,


To catch any possible exception What is the C# syntax written ?

0 Answers   Siebel,


Explain dataadapter.update method in .net?

0 Answers  






What are value types and reference types?

0 Answers  


What is the difference between abstract and abstraction?

0 Answers  


Is unity object oriented?

0 Answers  


Are tuples mutable c#?

0 Answers  


How do I register my code for use by classic com clients?

0 Answers  


What are the different types of assembly?

0 Answers  


Define using statement in c#?

0 Answers  


Categories