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

  • Download the OOPS, ASP.NET and ADO.NET online training sessions videos and related document for FREE, click here.

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:1737 |  Print | Asked In: Many interviews


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

Interesting?   Share and Bookmark this


 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



Advertisement

About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)