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 are the server controls in asp.net?

456


In how many ways we can retrieve table records count?

532


What is the difference between web.config and machine.config in ASP.NET?

594


What are the two properties that are common on every validation control?

551


What are resource file and how do we generate resource file?

561






Describe how to implement globalization and localization in the use interface in .net.

558


Explain how can we inherit a static member?

528


What is the Intermittent crashing of application in production?

557


How can you access the properties and controls of master pages from content pages?

513


What is session management in web application?

545


What is csrf attack in asp.net?

515


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

548


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

568


IN an ASP.NET Web application if there is any error, how can you debug?

579


What is difference between URL and URI?

622