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
Give examples for value types?
What is singleordefault c#?
Can we declare private class in c#?
What happens when thread sleep () method is called?
What is parameterized constructor?
How to do and Apply Themes to Datagrid,Lable,Textbox,etc., in C#.NET 2005 Windows Application? (like who we will do themes in ASP.NET using .CSS and .SKIN files). Urgent!!
How many types of constructors are available in c#?
What is dependency injection?
What is private variable?
What is default value of decimal c#?
What is class in oops with example in c#?
Explain About Iunknown interface Queue
Is string primitive?
What is xml c#?
Why delegates are type safe in c#?