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 user control and custom control?

675


What do you mean by serialize?

710


Differentiate between authentication and authorization.

740


What is meant by ispostback in asp net?

745


Explain the differences between managed and unmanaged code?

678






How many types of cache are there?

699


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1700


What is globalization and localization in asp net?

682


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

723


How many types cache in asp net?

739


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

728


To display data in a Repeater control which template you provide?

762


Write the different features of a Thread and a Process?

845


What is postback request?

718


What's the use of response.output.write()?

975