What are the differences between Trace and Debug?
Answer Posted / vinod reddy
Trace and Debug - There are two main classes that deal with
tracing - Debug and Trace. They both work in a similar way -
the difference is that tracing from the Debug class only
works in builds that have the DEBUG symbol defined, whereas
tracing from the Trace class only works in builds that have
the TRACE symbol defined. Typically this means that you
should use System.Diagnostics.Trace.WriteLine for tracing
that you want to work in debug and release builds, and
System.Diagnostics.Debug.WriteLine for tracing that you want
to work only in debug builds.
Tracing is actually the process of collecting information
about the program's execution. Debugging is the process of
finding & fixing errors in our program. Tracing is the
ability of an application to generate information about its
own execution. The idea is that subsequent analysis of this
information may help us understand why a part of the
application is not behaving as it should and allow
identification of the source of the error.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
how to include timer or counting time to display next page in asp.net
What are the types of validation in asp net?
How is it possible for .NET to support many languages?
In which event of the page viewstate is available?
How you will improve web application performance?
What is the use of session in web application?
What is difference between asp.net and asp.net mvc? : Asp.Net MVC
What is session handling in a webfarm, how it can work with its limits?
Explain different types of Caching techniques in ASP.NET?
How many types of triggers are there in update panel?
What is difference between mvc and asp.net? : Asp.Net MVC
Explain about Application and Session Events ?
Explain diff. Betn dataset and recordset?
If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
What is authorization in asp.net?