difference between Trace and Debug ?

Answer Posted / leela mohan

The system.Diagnostics namespace contains the Debug and
Trace classes that include shared methods.

The diffetrnce between these two classes is in the way
Trace and Debug statements are treated at the of creating a
release bulid.

Trace statements are included by default when the program
is compiled in to release build,where as debug statements
are not.The Debug class is used for debugging,however, the
Trace class is used for testing and optimization even after
an application is compiled and released.

Is This Answer Correct ?    33 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

727


Describe session handling in a webfarm, how does it work and what are the limits?

807


Name the tools or API for developing or testing web api?

732


What is razor? : asp.net mvc

768


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

785


how to debug web services on consumer side?

804


What is the difference between GridView and Repeater controls in ASP.NET?

801


What is the mvc model?

764


What is the maximum number of classes that can be contained in one dll file?

952


What is the use of execute non query in asp.net?

695


How can we prepairing Interview

2097


What is the use of web.config and machine.config files?

859


What is the usie of activex control in .net?

745


Can the unique key be null?

822


What are the events that happen when a client requests an asp.net page from iis server?

687