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 the good practice to implement validations in aspx page?

875


COM+ Used ________________ Isolation Level

1750


What is query string in asp.net?

820


Explain the disadvantages of viewstate?

803


Explain about Application and Session Events ?

843


Explain the difference between value type and reference type?

476


How Session outproc in Sqlserver stored?

2551


What is server side session?

765


What are directives in asp.net?

732


What is http session state?

739


How does a content page different from a master page?

832


What is the main function of url routing system in asp.net mvc? : asp.net mvc

737


How do I use a proxy server when invoking a web service?

769


In a Repeater control how one can provide an alternating color scheme ?

826


What is the typical session identifier?

837