difference between Trace and Debug ?
Answer Posted / chauhan rakesh botad
Trace and Debug classes :
Fortunately, you do not have to step through an application
line by line to figure out what is happening.
The Systems.Diagnostics namespace includes Trace and Debug
classes.
These two classes (which are essentially identical) include
a number of static methods that can be used to cause your
code to gather information about code-execution paths, code
coverage, and even performance profiling. Both classes also
provide an Assert method that checks for a condition and
displays a message if the condition is false.
Tracing : Tracing is actually the process of collecting
information about the program's execution.
Debug : Debugging is the process of finding & fixing errors
in our program.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How you can access the properties and controls of master pages from content pages?
How can you make sure that web api returns json data only?
What is a master page and what does it do?
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
How to implement globalization and localization in the use interface in .net.
What is the difference between union and structure?
What is the extension of master page in asp.net?
Explain the steps needed to be performed in order to create an animation in xaml?
What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is web api config?
What is page fragment caching?
How many types of validation are there?
Which .NET framework supports Web API?
What are strong names?
What are the different authentication modes in asp.net?