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

i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1598


Define globalization and localization.

734


What is special types forms

723


How do we ensure view state has not tampered?

791


How many types cache in asp net?

739


What is full form of asp.net?

693


Explain the server control events of asp.net ?

723


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1774


Differentiate between a hyperlink control and a linkbutton control.

714


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

1676


What is the maximum amount of memory any single process on windows can address?

736


Explain how does asp page work?

751


What is a global postback url?

690


Contrast OOP and SOA. What are tenets of each ?

1929


What is a gridview in asp.net?

720