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
Tell me the code snippet to show how we can return 404 errors from HttpError?
What is difference between view and partial view?
What is base class of .net?
What are the different types of validation controls provided in ASP.NET?
What is the request flow used for asp.net mvc framework? : asp.net mvc
How you can add an event handler?
Explain how can we access static variable?
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
Explain the Session state management options available with ASP.NET?
Differentiate strong typing and weak typing
What would be salary for 8+ years of experience in ASP.NET in different metro city in india?
Describe the difference between inline and code behind - which is best in a?
What is page request in asp.net?
What is a pixel url?
Is asp net front end or backend?