Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What?s the implicit name of the parameter that gets passed into the class? set method?

1 Answers  


What?s the difference between System.String and System.StringBuilder classes?

5 Answers  


how to use msflexgrid in asp.net

1 Answers   nSoft, Unichem,


What is the use of private constructor in c#?

0 Answers  


What is exe in c#?

0 Answers  


Can the nested class access, the containing class. Give an example?

0 Answers  


When a switch is said to be congested?

0 Answers   Wipro,


Can a loop recorder detect a heart attack?

0 Answers  


What do you mean by for each loop?

0 Answers  


How do I stop my console from closing in c#?

0 Answers  


Does c# support multilevel inheritance?

0 Answers  


What is difference between abstract class and interface in c#?

0 Answers  


Categories