What is the difference between Debug.Write and Trace.Write?

 Posted by Tripati_tutu on 12/22/2010 | Category: C# Interview questions | Views: 8212 | Points: 40
Answer:

The Debug.Write will work while the application is in both Debug Mode and Release Mode. This is normally used while you are going to debug a project. This will not be work when you will define some debug points to your project.

But the Trace.write will work while the application is only in Release Mode. This is used in released version of an application. This will compiled when you will define debug points in your project.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: King1411 on: 1/24/2011 | Points: 10
Trace.write will work both debug and release mode.
Debug mode will work only Debug mode.


Login to post response