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

How do you declare static variable?

559


How Can assign alias name for ASP.NET Web API Action?

934


What are sessions in asp net?

520


Which is better php or asp.net?

514


What is session start?

518






What is ispostback method in asp.net?

552


What is cached data phone?

524


Explain how viewstate is being formed?

540


What is the request flow used for asp.net mvc framework? : asp.net mvc

529


In ViewState How much lifespan items stored?

591


Explain the code Access Security (CAS) in .net Framework?

671


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

549


What is the biggest disadvantage of “Other Return Types” in Web API?

929


Can the dictionary object be created in client?s scope ?

1988


What is globalization and localization in asp net?

489