Debug Vs Trace - DOT.NET

Debug Vs Trace.

It uses the Debug class.It uses the Trace class.
It uses the time of application development.It uses the time of application deployment.
It works only in debug mode.It works in both case debug and release mode.
It can be used Debug.Write() method for debug.It can be used to Trace.Write() method for trace.
It runs in the same thread as main program executes.It runs in different thread form main program execute thread.
It is used to find errors in the program.It is used for testing and optimization even after an application is compiled and released.
Define trace class - DOT.NET
You can use trace messages to your project to monitor events in the released version of the application...
Define Listeners collection of Trace and Debug objects - DOT.NET
The Trace and Debug objects contain a Listeners collection. These Listeners collection collect output from the trace statements....
Define Trace Switches - DOT.NET
Trace switches can be configured through application's .config file even after the application is compiled.....
Post your comment