You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/developer/webapps/aspnet/development/disable-debugging-application.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ description: This article discusses how to disable debugging for ASP.NET applica
4
4
ms.date: 03/25/2025
5
5
ms.custom: sap:General Development
6
6
ms.topic: how-to
7
+
ms.reviewer: paulboc
7
8
---
8
9
# Disable debugging for ASP.NET applications
9
10
@@ -18,14 +19,14 @@ ASP.NET supports compiling applications in a special debug mode that helps devel
18
19
19
20
Debugging is disabled by default. Debugging is frequently enabled to troubleshoot a problem. But it's frequently not disabled after the problem is resolved. This article describes how to disable debugging for an ASP.NET application.
20
21
21
-
To disable debugging, modify the *Web.config* file or the *Machine.config* file, as detailed in the following sections.
22
+
To disable debugging, modify the **Web.config** file or the **Machine.config** file, as detailed in the following sections.
22
23
23
24
## Method 1: Modify the Web.config file
24
25
25
-
To disable debugging, add the compilation element to the *Web.config* file of the application by following these steps. The *Web.config* file is located in the application directory.
26
+
To disable debugging, add the compilation element to the **Web.config** file of the application by following these steps. The **Web.config** file is located in the application directory.
26
27
27
-
1. Open the *Web.config* file in a text editor, such as Notepad. The file is typically located in the application directory.
28
-
2. In the *Web.config* file, locate the compilation element. Debugging is enabled when the debug attribute in the compilation element is set to `true`.
28
+
1. Open the **Web.config** file in a text editor, such as Notepad. The file is typically located in the application directory.
29
+
2. In the **Web.config** file, locate the compilation element. Debugging is enabled when the debug attribute in the compilation element is set to `true`.
29
30
3. Change the debug attribute to `false` to disable debugging for that application.
30
31
31
32
The following code sample shows the compilation element with debug set to `false`:
@@ -34,7 +35,7 @@ To disable debugging, add the compilation element to the *Web.config* file of th
34
35
<compilationdebug="false"/>
35
36
```
36
37
37
-
4. Save the *Web.config* file. The ASP.NET application automatically restarts.
38
+
4. Save the **Web.config** file. The ASP.NET application automatically restarts.
0 commit comments