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

Which object encapsulates state or data of a user?

623


What is the parent class of all the web server control?

482


What is new asp.net core?

569


List the asp.net validation controls?

521


What is custom events?

563






Explain what are the advantages of asp.net mvc framework? : asp.net mvc

515


What is view state and how it works in asp net?

542


How can you enable impersonation in the web.config file?

557


Please brief not about xsd,xslt & xml?

542


What are strong names?

580


What is the difference between Hash table and Array list?

369


Why is mvc better than asp.net?

531


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

580


What is the server of asp.net?

505


What does the orientation property do in a menu control?

529