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
What is the "helperpage.isajax" property?
What are the components required to create a route in mvc?
Is entity framework slow?
Explain what is the difference between view and partial view?
How the ‘page lifecycle’ of ASP.Net MVC does works?
What is the use of viewmodel in mvc?
Define the core components of an ASP.NET MVC application?
What is net framework 3.0 ?
How can we determine action invoked from HTTP GET or HTTP POST?
Explain the types of Scaffoldings.
Is .net core faster than .net framework?
What is code first? : Entity framework
Explain how to use multiple submit buttons in ASP.Net MVC?
What are the advantages of razor view engine?
Explain the advantage of packaging over xcopy in .net?