Article ID: 815157 - View products that this article applies to.
This step-by-step article discusses how to disable debugging for ASP.NET applications.
ASP.NET supports compiling applications in a special debug mode that facilitates developer troubleshooting. Debug mode causes ASP.NET to compile applications with extra information that enables a debugger to closely monitor and control the execution of an application. Applications that are compiled in debug mode execute as expected. However, the performance of the application is affected. To avoid the effect on performance, it is a good idea to enable debugging only when a developer is doing interactive troubleshooting. By default, debugging is disabled, and although debugging is frequently enabled to troubleshoot a problem, it is also frequently not disabled again after the problem is resolved. This article describes how to disable debugging for an ASP.NET application.
Modify the Web.config FileTo enable debugging, add the compilation element to the Web.config file of the application. The Web.config file is located in the application directory. To do this, follow these steps:
Modify the Machine.config FileYou can also enable debugging for all applications on a system by modifying the Machine.config file. To confirm that debugging has not been enabled in the Machine.config file, follow these steps.
For more information, visit the following MSDN Web site:
Debug Mode in ASP.NET ApplicationsFor additional information about remote debugging, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/318041/EN-US/ )HOW TO: Set Up and Use Remote Debugging in Microsoft Visual Studio .NET
(http://support.microsoft.com/kb/818015/EN-US/ )HOW TO: Tune and Scale Performance of Applications That Are Built on the .NET Framework