What?s the difference between the Debug class and Trace class?
Answer Posted / 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 View All Answers
What are functions c#?
What is the Signification of the "new " keyword in C#? example
You are creating a custom usercontrol, some of the newly created properties are shown in the properties window. How you can hide a new property named theme from the properties window?
What is a bool in c#?
Explain the constructor in c#.
what is the difference between the debug class and trace class?
What do u mean by thread safe?
Which attribute is used in order that the method can be used as webservice?
What are delegates?
What operators can be used to cast from one reference type to another without the risk of throwing an exception?
what is inheritance and an example in vb.net and c# of when you might use it?
What Is The Difference Between The System.array.copyto() And System.array.clone()?
What is instantiating a class in c#?
How big is a 64 bit integer?
What is the data type for bit in c#?