Skip to content

Commit 7281b6b

Browse files
authored
Docs 2024 Review - Update disable-debugging-application.md
Making changes to indicate that these apps are running on .Net Framework and adding images.
1 parent 87ceeb0 commit 7281b6b

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

support/developer/webapps/aspnet/development/disable-debugging-application.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: how-to
77
---
88
# Disable debugging for ASP.NET applications
99

10-
This article discusses how to disable debugging for ASP.NET applications.
10+
This article discusses how to disable debugging for ASP.NET applications (running on .Net Framework).
1111

1212
_Original product version:_   ASP.NET
1313
_Original KB number:_   815157
@@ -43,13 +43,38 @@ You can also disable debugging for all applications on a system by modifying the
4343
1. Open the *Machine.config* file in a text editor, such as Notepad. The file is typically located in the following folder:
4444

4545
`%SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\`
46-
2. In the *Machine.config* file, locate the compilation element. Debugging is enabled when the debug attribute in the compilation element is set to **true**.
47-
3. If the debug attribute is **true**, change the debug attribute to **false**.
46+
47+
or, for 64 bit versions of the .Net Framework:
48+
49+
`%SystemRoot%\Microsoft.NET\Framework64\%VersionNumber%\CONFIG\`
50+
51+
3. In the *Machine.config* file, locate the compilation element. Debugging is enabled when the debug attribute in the compilation element is set to **true**.
52+
4. If the debug attribute is **true**, change the debug attribute to **false**.
4853

4954
The following code sample shows the compilation element with debug set to **false**:
5055

5156
```xml
5257
<compilation debug="false"/>
5358
```
5459

55-
4. Save the *Machine.config* file.
60+
5. Save the *Machine.config* file.
61+
62+
## Method 3: Using the IIS Manager Console (if the web-application is hosted on IIS)
63+
64+
1. Open the IIS Manager Console on the computer where the website it hosted (you can press Windows+R key and type inetmgr.exe)
65+
66+
<insert picture from step 1>
67+
2. Select the website or web-application for which you wish to enable or disable debug mode from the left hand side tree view
68+
69+
<insert picture from step 2>
70+
3. From the middle-pane of the IIS Manager console, select the '.Net Compilation' icon
71+
72+
<insert picture from step 3>
73+
4. Within the list of parameter values displayed in the center pane of the IIS Manager set the 'Debug' parameter under the 'Behavior' category to:
74+
**true** if you wish to enable debug mode
75+
**false** if you wish to disable debug mode
76+
77+
<insert picture from step 4>
78+
5. Select the 'Apply' button from the right-hand side pane of the IIS manager console to persist the changes to the IIS configuration
79+
80+
<insert picture from step 5>

0 commit comments

Comments
 (0)