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


Please Help Members By Posting Answers For Below Questions

What is a web farm?

594


Is asp.net is a programming language?

487


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

1747


What is the life cycle of an asp.net page?

524


Define tracing.

626






Is oauth for authentication or authorization?

585


Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?

549


how to include timer or counting time to display next page in asp.net

1601


What is the extension of master page in asp.net?

543


What is the difference between server-side scripting and client-side scripting?

547


What is difference between viewstate and session state in javascript?

572


What are the server controls in asp.net?

456


How Session use Cookies in State Management?

607


Is asp.net easy to learn?

553


Can the unique key be null?

566