difference between Trace and Debug ?
Answer Posted / rameez.s
Debug Class provides a set of methods and properties that
help debug your code. If you use methods in the Debug class
to print debugging information and check your logic with
assertions, you can make your code more robust without
impacting the performance and code size of your shipping
product. In Visual Studio 2005 projects, creating a debug
build enables Debug.
You can use the properties and methods in the Trace class to
instrument release builds. Instrumentation allows you to
monitor the health of your application running in real-life
settings. Tracing helps you isolate problems and fix them
without disturbing a running system.
In Visual Studio 2005 projects, Trace is enabled by default
for both release and debug builds, so code is generated for
all trace methods in both release and debug builds.
Therefore, you can use Trace to instrument release builds.
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
What is special types forms
Explain about Automatic resource management?
How would you get asp.net running in apache web servers?
Is asp.net mvc still used? : Asp.Net MVC
Which browsers support the xmlhttprequest object?
What are the events in a page life cycle?
Where do the cookie state and session state information be stored?
How can you enable impersonation in the web.config file?
What is the advantage of using Windows authentication in a Web application?
What is session start?
What are session state modes? List some of the important session state modes of asp.net.
What are server-side comments in ASP.NET?
Explain the different parts that constitute ASP.NET application?
What is the file extension of web service?
What does aspcompat="true" mean?