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 kind of data can be stored in viewstate?

731


What are the different types of sessions in asp.net?

672


How information about the user's locale can be accessed?

774


What is the difference between an htmlinputcheckbox control and an htmlinputradiobutton control?

835


What is an axd file?

777


What is bson in web api?

789


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1912


Do you know about caching with the datasource controls?

663


What is applicatio domain?

734


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

764


How many validators do ASP.NET have?

768


What is aspect-oriented programming?

709


What are uri parameters?

732


What do you mean by serialize and marshalbyref?

752


Define repository pattern in mvc.net? : asp.net mvc

727