difference between Trace and Debug ?

Answer Posted / mickey

Debug only works in debug mode and Trace works in debug and
release both mode.

system.Diagnostics

namespace contains the Debug and Trace classes that include
shared methods.

The diffetrnce between these two classes is in the way Trace
and Debug statements are treated at the of creating a
release bulid.

Trace statements are included by default when the program is
compiled in to release build,where as debug statements are
not.The Debug class is used for debugging,however, the Trace
class is used for testing and optimization even after an
application is compiled and released.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me the code snippet to show how we can return 404 errors from HttpError?

1065


What is difference between view and partial view?

733


What is base class of .net?

772


What are the different types of validation controls provided in ASP.NET?

932


What is the request flow used for asp.net mvc framework? : asp.net mvc

760


How you can add an event handler?

769


Explain how can we access static variable?

843


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

932


Explain the Session state management options available with ASP.NET?

813


Differentiate strong typing and weak typing

757


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2243


Describe the difference between inline and code behind - which is best in a?

858


What is page request in asp.net?

756


What is a pixel url?

730


Is asp net front end or backend?

782