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 .net framework and what are the main components of it?

376


What is a session in asp.net?

541


What is the compiled object?

1646


Explain the features that make asp.net more used framework? : asp.net mvc

487


What is connection pooling and how to enable and disable connection pooling?

486






Define xmlreader class.

579


Explain the advantages of passport authentication.

515


What is form method?

499


What are the server controls in asp.net?

460


What is session mode in asp.net?

523


Explain about the .NET framework?

575


How to find out what version of asp.net I am using on my machine?

585


What is a web server? What are the load limits in it?

592


What is a session http?

521


How can you dynamically add user controls to a page?

515