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

How do I use a proxy server when invoking a web service?

740


What is clr? Difference between clr & cts?

879


What is role-based security in asp.net?

741


How do http sessions work?

685


Contrast OOP and SOA. What are tenets of each ?

1964


How does the service stream content?

794


How do you do Client-side validation in .Net?

846


What are the asp.net server side objects?

726


Explain file-based dependency and key-based dependency.

777


Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?

771


What is ashx file in asp.net?

764


Explain the difference between debug.write and trace.write? When should each be used?

766


Do you know about caching with the datasource controls?

694


What are cookies in asp.net?

804


What is application in asp net?

685