difference between Trace and Debug ?

Answer Posted / leela mohan

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.

Is This Answer Correct ?    33 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does postback mean?

722


Is asp.net different from asp? If yes, explain how?

678


1.can we add connection string in global.asax?????????? 2.what are the default files included when we create new web application????

19624


Explain global assembly cache.

756


What is the procedure to create the environment for asp.net? : asp.net mvc

691






What does the hotspot class in .net do?

738


What is csrf attack in asp.net?

683


How do I use response redirect?

716


What is the namespace to create thread in .net?

697


How you will manage the state of ASP.NET controls?

743


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

740


What is tracing? Where is it used?

791


Briefly describe the role of global.asax?

742


Which Is Faster MVC or ASP.net ?

759


What are url fragments?

669