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: docs/debugger/a-dcom-error-occurred-trying-to-contact-the-remote-computer-access-is-denied.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -26,23 +26,23 @@ ms.workload:
26
26
# A DCOM error occurred trying to contact the remote computer. Access is denied.
27
27
Remote debugging uses DCOM to communicate between the local and remote computers in the following situations:
28
28
29
-
-The debugger is set to **Native Compatibility Mode** or **Managed Compatibility Mode** is checked in the **Tools > Options > Debugging** page
29
+
- The debugger is set to **Native Compatibility Mode** or **Managed Compatibility Mode** is checked in the **Tools > Options > Debugging** page
30
30
31
-
-You are debugging managed C++ (C++/CLI) code.
31
+
- You are debugging managed C++ (C++/CLI) code.
32
32
33
-
-In Visual Studio 2013, when **Enable native Edit and Continue** is checked in the **Tools > Options > Debugging** page
33
+
- In Visual Studio 2013, when **Enable native Edit and Continue** is checked in the **Tools > Options > Debugging** page
34
34
35
-
-Some third party debugging scenarios
35
+
- Some third party debugging scenarios
36
36
37
-
This error occurs when the Visual Studio process cannot authenticate itself (or the supplied credentials were deemed insufficient) to the remote debugger process over DCOM. One or more of the following workarounds might resolve the issue:
37
+
This error occurs when the Visual Studio process cannot authenticate itself (or the supplied credentials were deemed insufficient) to the remote debugger process over DCOM. One or more of the following workarounds might resolve the issue:
38
38
39
-
-Turn off **Native Compatibility Mode** and **Managed Compatibility Mode**.
39
+
- Turn off **Native Compatibility Mode** and **Managed Compatibility Mode**.
40
40
41
-
-In Visual Studio 2013, turn off **Enable native Edit and Continue**.
41
+
- In Visual Studio 2013, turn off **Enable native Edit and Continue**.
42
42
43
-
-Reboot both computers.
43
+
- Reboot both computers.
44
44
45
-
-If remote debugging requires entering credentials, check the option to save the credentials.
45
+
- If remote debugging requires entering credentials, check the option to save the credentials.
46
46
47
47
## See Also
48
48
[Remote Debugging Errors and Troubleshooting](../debugger/remote-debugging-errors-and-troubleshooting.md)
Copy file name to clipboardExpand all lines: docs/debugger/aspnet-debugging-system-requirements.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,13 @@ ms.workload:
22
22
# ASP.NET Debugging: System Requirements
23
23
This topic describes the software and security requirements for [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] debugging scenarios:
24
24
25
-
-Local debugging, in which [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] and the Web application run on the same computer. There are two versions of this scenario:
25
+
- Local debugging, in which [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] and the Web application run on the same computer. There are two versions of this scenario:
26
26
27
-
- The [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] code resides on the file system.
27
+
- The [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] code resides on the file system.
28
28
29
-
- The [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] code resides in an IIS Web site.
29
+
- The [!INCLUDE[vstecasp](../code-quality/includes/vstecasp_md.md)] code resides in an IIS Web site.
30
30
31
-
-Remote debugging, in which [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] runs on a client computer and debugs a Web application that is running on a remote server computer.
31
+
- Remote debugging, in which [!INCLUDE[vsprvs](../code-quality/includes/vsprvs_md.md)] runs on a client computer and debugs a Web application that is running on a remote server computer.
32
32
33
33
## Security Requirements
34
34
For remote debugging, local and remote computers must be on a domain setup or a workgroup setup.
Copy file name to clipboardExpand all lines: docs/debugger/assertions-in-managed-code.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -138,19 +138,19 @@ Debug.Assert ( temp != 0 );
138
138
139
139
Otherwise, for <xref:System.Diagnostics.Trace> methods to work, your program must have one of the following at the top of the source file:
140
140
141
-
-`#Const TRACE = True` in Visual Basic
141
+
-`#Const TRACE = True` in Visual Basic
142
142
143
-
-`#define TRACE` in Visual C# and C++
143
+
-`#define TRACE` in Visual C# and C++
144
144
145
-
Or your program must be built with the TRACE option:
145
+
Or your program must be built with the TRACE option:
146
146
147
-
-`/d:TRACE=True` in Visual Basic
147
+
-`/d:TRACE=True` in Visual Basic
148
148
149
-
-`/d:TRACE` in Visual C# and C++
149
+
-`/d:TRACE` in Visual C# and C++
150
150
151
-
If you need to use the Debug methods in a C# or Visual Basic Release build, you must define the DEBUG symbol in your Release configuration.
151
+
If you need to use the Debug methods in a C# or Visual Basic Release build, you must define the DEBUG symbol in your Release configuration.
152
152
153
-
C++ does not support the <xref:System.Diagnostics.Debug> class methods. You can achieve the same effect by using the <xref:System.Diagnostics.Trace> class with conditional compilation, such as `#ifdef DEBUG`... `#endif`. You can define these symbols in the **\<Project> Property Pages** dialog box. For more information, see [Changing Project Settings for a Visual Basic Debug Configuration](../debugger/project-settings-for-a-visual-basic-debug-configuration.md) or [Changing Project Settings for a C or C++ Debug Configuration](../debugger/project-settings-for-a-cpp-debug-configuration.md).
153
+
C++ does not support the <xref:System.Diagnostics.Debug> class methods. You can achieve the same effect by using the <xref:System.Diagnostics.Trace> class with conditional compilation, such as `#ifdef DEBUG`... `#endif`. You can define these symbols in the **\<Project> Property Pages** dialog box. For more information, see [Changing Project Settings for a Visual Basic Debug Configuration](../debugger/project-settings-for-a-visual-basic-debug-configuration.md) or [Changing Project Settings for a C or C++ Debug Configuration](../debugger/project-settings-for-a-cpp-debug-configuration.md).
<xref:System.Diagnostics.Trace.Assert%2A?displayProperty=fullName> and <xref:System.Diagnostics.Debug.Assert%2A?displayProperty=fullName> take up to three arguments. The first argument, which is mandatory, is the condition you want to check. If you call <xref:System.Diagnostics.Trace.Assert(System.Boolean)?displayProperty=fullName> or <xref:System.Diagnostics.Debug.Assert(System.Boolean)?displayProperty=fullName> with only one argument, the `Assert` method checks the condition and, if the result is false, outputs the contents of the call stack to the **Output** window. The following example shows <xref:System.Diagnostics.Trace.Assert(System.Boolean)?displayProperty=fullName> and <xref:System.Diagnostics.Debug.Assert(System.Boolean)?displayProperty=fullName>:
1. In the **Available processes** list, find and select the process or processes you want to attach to.
57
+
2. In the **Available processes** list, find and select the process or processes you want to attach to.
58
58
59
-
- To quickly select a process, type its name or first letter in the **Filter processes** box.
59
+
- To quickly select a process, type its name or first letter in the **Filter processes** box.
60
60
61
-
- If you don't know the process name, browse through the list, or see [Common debugging scenarios](#BKMK_Scenarios) for some common process names.
61
+
- If you don't know the process name, browse through the list, or see [Common debugging scenarios](#BKMK_Scenarios) for some common process names.
62
62
63
-
>[!TIP]
64
-
>Processes can start and stop in the background while the **Attach to Process** dialog box is open, so the list of running processes may not always be current. You can select **Refresh** at any time to see the current list.
63
+
>[!TIP]
64
+
>Processes can start and stop in the background while the **Attach to Process** dialog box is open, so the list of running processes may not always be current. You can select **Refresh** at any time to see the current list.
65
65
66
-
1. In the **Attach to** field, make sure the type of code you plan to debug is listed. The default **Automatic** setting works for most app types.
66
+
3. In the **Attach to** field, make sure the type of code you plan to debug is listed. The default **Automatic** setting works for most app types.
67
67
68
-
To select code types manually:
69
-
1. Click **Select**.
70
-
1. In the **Select Code Type** dialog box, select **Debug these code types**.
71
-
1. Select the code types you want to debug.
72
-
1. Select **OK**.
68
+
To select code types manually:
69
+
1. Click **Select**.
70
+
1. In the **Select Code Type** dialog box, select **Debug these code types**.
71
+
1. Select the code types you want to debug.
72
+
1. Select **OK**.
73
73
74
-
1. Select **Attach**.
74
+
4. Select **Attach**.
75
75
76
76
>[!NOTE]
77
77
>You can be attached to multiple apps for debugging, but only one app is active in the debugger at a time. You can set the active app in the Visual Studio **Debug Location** toolbar or **Processes** window.
@@ -84,46 +84,46 @@ For more complete instructions for debugging ASP.NET applications that have been
84
84
85
85
**To attach to a running process on a remote computer:**
86
86
87
-
1.In Visual Studio, select **Debug** > **Attach to Process** (or press **Ctrl**+**Alt**+**P**) to open the **Attach to Process** dialog box.
87
+
1. In Visual Studio, select **Debug** > **Attach to Process** (or press **Ctrl**+**Alt**+**P**) to open the **Attach to Process** dialog box.
88
88
89
-
1.**Connection type** should be **Default** for most cases. In the **Connection target** box, select the remote computer, using one of the following methods:
89
+
2.**Connection type** should be **Default** for most cases. In the **Connection target** box, select the remote computer, using one of the following methods:
90
90
91
-
- Select the drop-down arrow next to **Connection target**, and select the computer name from the drop-down list.
92
-
- Type the computer name in the **Connection target** box.
91
+
- Select the drop-down arrow next to **Connection target**, and select the computer name from the drop-down list.
92
+
- Type the computer name in the **Connection target** box.
93
93
94
-
> [!NOTE]
95
-
> If you can't connect using the remote computer name, try using the IP and port address (for example, `123.45.678.9:4022`). 4022 is the default port for the Visual Studio 2017 x64 remote debugger. For other remote debugger port assignments, see [Remote debugger port assignments](remote-debugger-port-assignments.md).
94
+
> [!NOTE]
95
+
> If you can't connect using the remote computer name, try using the IP and port address (for example, `123.45.678.9:4022`). 4022 is the default port for the Visual Studio 2017 x64 remote debugger. For other remote debugger port assignments, see [Remote debugger port assignments](remote-debugger-port-assignments.md).
96
96
97
-
- Select the **Find** button next to the **Connection target** box to open the **Remote Connections** dialog box. The **Remote Connections** dialog box lists all the devices that are on your local subnet or directly attached to your computer. You may need to [open UDP port 3702](../debugger/remote-debugger-port-assignments.md) on the server to discover remote devices. Select the computer or device you want, and then click **Select**.
97
+
- Select the **Find** button next to the **Connection target** box to open the **Remote Connections** dialog box. The **Remote Connections** dialog box lists all the devices that are on your local subnet or directly attached to your computer. You may need to [open UDP port 3702](../debugger/remote-debugger-port-assignments.md) on the server to discover remote devices. Select the computer or device you want, and then click **Select**.
98
98
99
-
> [!NOTE]
100
-
> The **Connection type** setting persists between debugging sessions. The **Connection target** setting persists between debugging sessions only if a successful debugging connection occurred with that target.
99
+
> [!NOTE]
100
+
> The **Connection type** setting persists between debugging sessions. The **Connection target** setting persists between debugging sessions only if a successful debugging connection occurred with that target.
101
101
102
-
1. Click **Refresh** to populate the **Available processes** list.
102
+
3. Click **Refresh** to populate the **Available processes** list.
103
103
104
-
>[!TIP]
105
-
>Processes can start and stop in the background while the **Attach to Process** dialog box is open, so the list of running processes may not always be current. You can select **Refresh** at any time to see the current list.
104
+
>[!TIP]
105
+
>Processes can start and stop in the background while the **Attach to Process** dialog box is open, so the list of running processes may not always be current. You can select **Refresh** at any time to see the current list.
106
106
107
-
1. In the **Available processes** list, find and select the process or processes you want to attach to.
107
+
4. In the **Available processes** list, find and select the process or processes you want to attach to.
108
108
109
-
- To quickly select a process, type its name or first letter in the **Filter processes** box.
109
+
- To quickly select a process, type its name or first letter in the **Filter processes** box.
110
110
111
-
- If you don't know the process name, browse through the list, or see [Common debugging scenarios](#BKMK_Scenarios) for some common process names.
111
+
- If you don't know the process name, browse through the list, or see [Common debugging scenarios](#BKMK_Scenarios) for some common process names.
112
112
113
-
- To find processes running under all user accounts, select the **Show processes from all users** check box.
113
+
- To find processes running under all user accounts, select the **Show processes from all users** check box.
114
114
115
-
>[!NOTE]
116
-
>If you try to attach to a process owned by an untrusted user account, a security warning dialog box confirmation will appear. For more information see [Security Warning: Attaching to a process owned by an untrusted user can be dangerous. If the following information looks suspicious or you are unsure, do not attach to this process](../debugger/security-warning-attaching-to-a-process-owned-by-an-untrusted-user.md).
115
+
>[!NOTE]
116
+
>If you try to attach to a process owned by an untrusted user account, a security warning dialog box confirmation will appear. For more information see [Security Warning: Attaching to a process owned by an untrusted user can be dangerous. If the following information looks suspicious or you are unsure, do not attach to this process](../debugger/security-warning-attaching-to-a-process-owned-by-an-untrusted-user.md).
117
117
118
-
1. In the **Attach to** field, make sure the type of code you plan to debug is listed. The default **Automatic** setting works for most app types.
118
+
5. In the **Attach to** field, make sure the type of code you plan to debug is listed. The default **Automatic** setting works for most app types.
119
119
120
-
To select code types manually:
121
-
1. Click **Select**.
122
-
1. In the **Select Code Type** dialog box, select **Debug these code types**.
123
-
1. Select the code types you want to debug.
124
-
1. Select **OK**.
120
+
To select code types manually:
121
+
1. Click **Select**.
122
+
1. In the **Select Code Type** dialog box, select **Debug these code types**.
123
+
1. Select the code types you want to debug.
124
+
1. Select **OK**.
125
125
126
-
1. Select **Attach**.
126
+
6. Select **Attach**.
127
127
128
128
>[!NOTE]
129
129
>You can be attached to multiple apps for debugging, but only one app is active in the debugger at a time. You can set the active app in the Visual Studio **Debug Location** toolbar or **Processes** window.
0 commit comments