difference between Trace and Debug ?

Answer Posted / mickey

Debug only works in debug mode and Trace works in debug and
release both mode.

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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between Server-side and Client-side code with its functionality?

622


Define asp.net caching?

532


What is the namespace to create thread in .net?

525


What is query string in asp.net?

559


What is webresource axd?

460






Define tracing.

626


What r the asp.net list controls and difference between them?

506


What is runat?

613


In which event of the page viewstate is available?

466


How to make paging concepts in datagrid in ASP.NET?

549


What is data reader in asp.net?

495


What does occur first in ASP.Net, Authentication or Authorization?

560


What are the event handlers that we can have in global.asax file?

532


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1457


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

476