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 are the various ways to send content from one page to another?

711


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

874


Will the asp.net validators run in server side or client side?

879


How to fetch a data from one table to another table in asp.net ?

793


Explain file-based dependency and key-based dependency.

768


Explain what is clr?

823


How to prepare culture-specific formatting in .net.

758


What are the different types of validation controls provided in ASP.NET?

902


Differentiate the session object and application object?

746


Which .NET framework supports Web API?

795


What is the difference between c# and .net?

781


What is difference between cookies and cache?

770


What is the difference between debug and release?

728


Is it true that a Web service must be written in .NET or not?

819


What is the difference between typeof() vs gettype()?

788