Answer Posted / kirti
Yes, in the System.Diagnostics namespace. 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.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain Model, view and Controllers in Asp.Net MVC?
Explain the advantage of packaging over xcopy in .net?
Explain the use of Inversion of control (IOC)?
What is the use of display modes?
In .net compact framework, can we free memory explicitly without waiting for garbage collector to free the memory?
What is viewbag title?
What are the 3 segments of the default route, that is present in an ASP.NET MVC application?
Is .net core replacing .net framework?
What is ado.net data provider? : Entity framework
Mention two instances where routing is not implemented or required?
What is representational state transfer (rest) mean?
What are ajax helpers in mvc?
List the new features added in .net framework 4.0.
what is entity sql?
What are Scaffold templates in ASP.Net MVC?