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
How do I use a proxy server when invoking a web service?
What is clr? Difference between clr & cts?
What is role-based security in asp.net?
How do http sessions work?
Contrast OOP and SOA. What are tenets of each ?
How does the service stream content?
How do you do Client-side validation in .Net?
What are the asp.net server side objects?
Explain file-based dependency and key-based dependency.
Are there any resources for drop-in replacements for the default css that comes with the ASP.NET Website template?
What is ashx file in asp.net?
Explain the difference between debug.write and trace.write? When should each be used?
Do you know about caching with the datasource controls?
What are cookies in asp.net?
What is application in asp net?