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


Please Help Members By Posting Answers For Below Questions

What is loop in asp.net?

819


Write a code for passing ArrayList in Web API?

1273


How to you can limit Access to Web API to Specific HTTP Verb?

924


Where is asp.net session stored?

686


8. Why do you want to work here?

1680


What are cookies in asp.net?

804


How can you use a custom controls in ASP.NET application?

742


Is it right that ASP.NET Web API has replaced WCF?

740


If 200 is for all successful operation then why do we have 201 response codes?

729


Is there any alternative to avoid name collisions other then Namespaces?

847


What is the difference between a default skin and a named skin?

843


What is a session government?

695


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

796


What is the difference between a multi-layer and multi-tier applications?

793


Explain parts of assembly?

746