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
What is a web api? Which protocol is used in a web api?
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
How to display Alert in ASP.NET
What are demand-paging and pre-paging?
Explain the concept of MVC Scaffolding?
Explain about the .NET framework?
How do I send an email message from my ASP.NET page?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
Can we handle the error and redirect to some pages using web.config?
What is the server of asp.net?
What is %20 in a url?
What is custom events? How to create it?
What are the ways of preserving data on a Web Form in ASP.NET?
What are asp.net web forms?
What are app services?