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


Please Help Members By Posting Answers For Below Questions

Where would you use an ihttpmodule, and what are the limitations if any?

736


What is directive in asp net?

737


How to use push notification?

793


What is query string with example?

708


What is session object? Describe in detail.

764


Define resource files.

732


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

742


What is the advantage of mvc over asp.net? : Asp.Net MVC

697


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

808


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

690


How you can return View from ASP.NET Web API method?

765


What is Web API?

829


Explain the difference between response.redirect vs server.transfer

845


What is a 1x1 pixel?

708


Which object wraps the state or data of a user?

745