What?s the difference between the Debug class and Trace
class?

Answers were Sorted based on User's Feedback



What?s the difference between the Debug class and Trace class?..

Answer / vinay panchal

There are two Trace classes in the Microsoft .NET Framework
library: System.Diagnostics.Trace and
System.Web.TraceContext. These Trace classes are frequently
confused with each other. However, each one is used for a
specific purpose.

You typically use the System.Diagnostics.Trace class to
debug console applications or Windows Forms applications.
You use System.Web.TraceContext only in Microsoft ASP.NET
applications. To display Trace.Write statements on an
ASP.NET page from a Class Library, you must use the
System.Web namespace. The following examples describe how to
use Trace.Write from a Class Library in an ASP.NET application.

Is This Answer Correct ?    3 Yes 0 No

What?s the difference between the Debug class and Trace class?..

Answer / surojit

What’s the difference between the Debug class and Trace
class? Documentation looks the same. Use Debug class for
debug builds, use Trace class for both debug and release
builds.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Sharp Interview Questions

can you create a function in c# which can accept varying number of arguments

0 Answers   Cognizant,


In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?

0 Answers  


What is the benefit of delegate in c#?

0 Answers  


What?s a delegate?

8 Answers   CTS, Visual Soft,


What is use of private class in c#?

0 Answers  






What is “using” statement in c#?

0 Answers  


Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com

3 Answers  


Difference between dispose and destructor?

3 Answers   TCS,


Is list passed by reference c#?

0 Answers  


What is a must for multitasking

0 Answers   InterGraph,


What are the steps to make an assembly to public?

0 Answers  


What is final keyword in c#?

0 Answers  


Categories