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
Name a few different return types of a controller action method?
What are the new enhancements done in default project template of asp.net mvc 4?
Explain something about model, view and controllers in asp.net mvc?
What is Layout in ASP.Net MVC?
what is minimum requirement for entity framework applications to run?
The order of the filters that get executed, if the multiple filters are implemented?
What is the use of viewmodel in mvc?
What is the meaning of unobtrusive javascript?
What is definingquery in entity framework? : Entity framework
Explain dependency resolution?
What is a model in programming?
what do you mean by table-per-type?
What are advantages of Dependency Injection (DI) in ASP.Net MVC?
What are Validation Annotations?
What is oauth in web api?