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

Why is global asax is used for?

520


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1599


What are the different types of cookies in asp.net?

527


To get the values in two different controls to match which control you use it?

535


Explain a program using code nuggets to create a simple application? : asp.net mvc

515






How can we update records in gridview?Is there any appropriate code for it?

1608


What is content page in asp net?

505


Explain about Application and Session Events ?

640


What is session object? Describe in detail.

567


How should I destroy my objects in asp.net?

603


What is the differences between a primary key and a unique key in sql server?

540


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4252


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

636


If 200 is for all successful operation then why do we have 201 response codes?

530


What is cookieless session id explain in brief?

533