what is diffrence between debug class and trace class in
asp.net ?
Answer Posted / naresh
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 ? | 1 Yes | 2 No |
Post New Answer View All Answers
How do you do Client-side validation in .Net?
Explain form level validation and field level validation?
What are HTTP handlers in ASP.NET?
What’s the difference between response .redirect and server.transfer?
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
How do cookies work? Give an example of their abuse.
Should I delete cookies?
In which situation can you not use a viewstate?
What are the difference between overriding and overloading?
What is the question mark in a url?
What is a 404 redirect?
explain code with datachaching with example
Explain about Application and Session Events ?
Can master pages be nested?
Explain the difference between globalization and localization techniques