difference between Trace and Debug ?

Answer Posted / leela mohan

The 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 ?    33 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is virtual directory in asp.net?

779


What are the difference between function and stored procedure in .net programming language?

485


How will you load dynamic assembly? How will create assesblies at run time?

723


What is difference cookie and session?

765


What are the event handlers that can be included in the Global.asax file?

840


What are the server controls in asp.net?

690


Explain the advantages of caching?

771


How many types of session state management options available in asp.net?

799


What is the full form of asp.net?

750


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

792


Explain an object, class and method.

759


Can you explain the importance of finalize method in .net?

829


What is the web.config file in asp?

862


Are cookies client side or server side?

698


What is session and cookies in asp.net?

781