difference between Trace and Debug ?
Answer Posted / rameez.s
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 ? | 6 Yes | 4 No |
Post New Answer View All Answers
Explain client-side scripting?
Is session server side or client side?
What is the size of Get method and how much data it can store?
What is difference between ispostback and autopostback in asp net?
What is localhost in asp.net?
What are sql notifications and sql invalidations?
What's the use of response.output.write()?
How can we inherit a static member?
Explain the role of global.asax?
Where the assembly is stored in asp.net?
What are the main advantages of using asp.net?
What is state management technique?
Explain the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
How many types of cache are there?
What are the two properties that are common on every validation control?