Tuesday, April 14, 2009

Difference between Trace and Debug Class !

Dev Palmistry

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.



What’s the difference between the Debug class and Trace class?

Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds.

----------------------------------------------------------------------------------------
Please Give a Glance......
dev-palmestry.blogspot.com/
of this blog.

----------------------------------------------------------------------------------------