What?s the difference between the Debug class and Trace class?
Answers were Sorted based on User's Feedback
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 |
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 |
What is a sealed class?
Explain what are the steps for creating clr trigger?
What is tpl in c#?
explain the features of static/shared classes.
Can you instantiate a struct without using a new operator in c#?
What is the default value of boolean variable?
How are methods overloaded?
What is the difference between integer and double?
What is multithreading with .net?
please exaplain gridview and what are the process available for it. how to add the row number automatically? is it possible to add child controls ?
Is c# good for beginners?
Explain what a diffgram, and a good use for one Define diffgram? How it be used?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)