what is diffrence between debug class and trace class in
asp.net ?

Answer Posted / naresh

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 ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Pre-Render event in ASP.NET?

592


How do I open an ashx file in windows 7?

573


How Can assign alias name for ASP.NET Web API Action?

939


What is active web page?

568


Explain the role of global.asax?

549






How does http session work?

522


What is the difference between application state and session state in asp net?

510


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

538


What is custom attribute? How to create?

543


Why do we need Sessions?

578


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

553


What is session in asp.net?

524


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

601


Can you nest updatepanel within each other?

553


A web service can only be written in .net? State whether true or false.

541