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
What is the latest version of asp.net?
What is the use of view state?
14. What are your Future Plans for Swatz Oils GROUP U.K?
What is view state management in asp net?
How do I use response redirect?
Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?
What is the caspol.exe tool used for?
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
How do you declare static variable? What is its lifetime?
Define web services in asp.net.
What are the different types of proxy patterns?
Explain about Application and Session Events ?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is state management technique?
What do you mean by serialize?