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


Please Help Members By Posting Answers For Below Questions

What is the Difference between MVC And MVP design pattrens

2439


What is a runtime version?

737


Will session work if cookies is disabled?

768


Why is string called immutable data type?

825


What is the equivalent of date() and time() in asp.net?

748


How many types of session state management options available in asp.net?

799


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

785


What are the steps to follow to host a web application on a web server?

807


How many languages are supported by .NET at present time?

562


Is web config mandatory?

753


What is the difference between a candidate key and primary key?

775


What is scope of an application variable in asp.net?

737


In which event are the controls fully loaded?

778


What are web beacons used for?

763


How can you identify that the page is post back?

790