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 is a partial method?
Is c# 8 released?
Is unboxing an implicit conversion?
How to rotate an Image in C#?
What are the 3 different types of arrays?
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 are instance fields in c#?
What is difference between singleton and static class in c#?
List the 5 different access modifiers in c#?
What is meant by desktop application?
If c# destructors are so different to c++ destructors, why did ms use the same syntax?
what are nullable types in c#
Is array value type in c#?
How do I create multifile assembly?
What is a hashset c#?