ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2170 Page Views: 

What is the difference between trace and debug in ASP.NET?



Posted By: Avi Date: 27 October 2009 04:56:34 AM
 Answer:

Debug and trace enables you to monitor the application for errors and exception without VS.NET IDE.

In Debug mode compiler inserts some debugging code inside the executable. As the debugging code is the part of the executable they run on the same thread where the code runs and they do not given you the exact efficiency of the code (as they run on the same thread). So for every full executable DLL you will see a debug file also as shown in figure 'Debug Mode'.

Trace works in both debug as well as release mode. The main advantage of using trace over debug is to do performance analysis which can not be done by debug. Trace runs on a different thread thus it does not impact the main code thread.


Posted By: eTechPlanet


Date: 27 October 2009 04:56:34 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image l8JRY1
Related Questions
ASP.Net : Explain various Validation Controls available in ASP.Net?

Explain various Validation Controls available in ASP.Net?

There are five types of Validation Controls available in ASP.Net: 1) RequiredField Validation contr....
Category: ASP.Net Date: 11/30/2009 3:28:15 PM
ASP.Net : How to set default button on a ASP.Net Web Form?

How to set default button on a ASP.Net Web Form?

In ASP.Net 2.0, we can set a default button on a page so that when the user presses the Enter key th....
Category: ASP.Net Date: 11/30/2009 5:01:16 AM
ASP.Net : How to set the cursor focus on a control in ASP.Net?

How to set the cursor focus on a control in ASP.Net?

In ASP.Net 2.0, the cursor focus on a control can be set by using the Focus() method. For example: ....
Category: ASP.Net Date: 11/30/2009 4:53:44 AM
ASP.Net : Explain the various types of ASP.Net Caching?

Explain the various types of ASP.Net Caching?

Basically, ASP.Net Caching is of two types: 1) Output Caching: The rendered html page is stored int....
Category: ASP.Net Date: 11/6/2009 7:48:31 AM
ASP.Net : Explain ASP.Net Caching?

Explain ASP.Net Caching?

ASP.Net Caching is a mechanism to store the frequently used data into the server memory which can be....
Category: ASP.Net Date: 11/6/2009 7:44:44 AM