Go to DotNetFunda.com
 Online : 746 |  Welcome, Guest!   Login
 
Home > Interview Questions > ASP.NET Interview Questions > What is difference between Trace and Deb ...

call for mock interview


ASP.NET Interview Questions


What is difference between Trace and Debug?

Author: Raja | Posted on: 4/12/2008 10:31:17 AM | Category: ASP.NET | Views:2887 |  Print | Asked In: Many interviews



Answer:
Use Debug class to debug builds
Use Trace class for both debug and release builds.

Found interesting? Add this to:

| More


 Response(s)
Posted by: Sampath041 | Posted on: 30 Mar 2009 11:51:15 AM

The system.Diagnostics namespace contains the Debug and
Trace classes that include shared methods.

The diffetrnce between these two classes is in the way
Trace and Debug statements are treated at the of creating a
release bulid.

Trace statements are included by default when the program
is compiled in to release build,where as debug statements
are not.The Debug class is used for debugging,however, the
Trace class is used for testing and optimization even after
an application is compiled and released.


Navigate to:

 Submit Interview Questions

What is ASP.NET 2.0 Page Life Cycle? ...

Difference between DataSet and DataReader ...

Random Interview Questions
Help: If for some reason you are getting the same question by clicking Next Question or Previous Question, Try clicking Categories link above.

Related interview questions

More ...


Advertisement

About Us | The Team | Advertise | Contact Us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 9/3/2010 4:14:03 AM