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/debugging-and-the-hosting-process.md
+20-21Lines changed: 20 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -4,37 +4,36 @@ ms.custom: ""
4
4
ms.date: "11/04/2016"
5
5
ms.technology: "vs-ide-debug"
6
6
ms.topic: "conceptual"
7
-
dev_langs:
7
+
dev_langs:
8
8
- "CSharp"
9
9
- "VB"
10
10
- "FSharp"
11
11
- "C++"
12
-
helpviewer_keywords:
12
+
helpviewer_keywords:
13
13
- "debugging [Visual Studio], hosting process"
14
14
- "hosting process"
15
15
ms.assetid: d0f0b9a6-2a6e-463d-b6ea-9518ee727933
16
16
author: "mikejo5000"
17
17
ms.author: "mikejo"
18
18
manager: douge
19
-
ms.workload:
19
+
ms.workload:
20
20
- "multiple"
21
21
---
22
22
# Debugging and the Hosting Process
23
-
The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation. You can disable the hosting process if you need to. For more information, see [How to: Disable the Hosting Process](../ide/how-to-disable-the-hosting-process.md). The following sections describe some differences between debugging with and without the hosting process.
24
-
25
-
## Partial-Trust Debugging and Click-Once Security
26
-
Partial-trust debugging requires the hosting process. If you disable the hosting process, partial-trust debugging will not work even if partial-trust security is enabled on the **Security** page of **Project Properties**. For more information, see [How to: Disable the Hosting Process](../ide/how-to-disable-the-hosting-process.md) and [How to: Debug a Partial Trust Application](../debugger/how-to-debug-a-partial-trust-application.md).
27
-
28
-
## Design-Time Expression Evaluation
29
-
Design-time expression always uses the hosting process. Disabling the hosting process in the **Project Properties** disables design-time expression evaluation for Class Library projects. For other project types, design-time expression evaluation is not disabled. Instead, Visual Studio starts the actual executable and uses it for design-time evaluation without the hosting process. This difference could produce different results.
`AppDomain.CurrentDomain.FriendlyName` returns different results depending on whether the hosting process is enabled. If you call `AppDomain.CurrentDomain.FriendlyName` with the hosting process enabled, it returns *app_name*`.vhost.exe`. If you call it the hosting process disabled, it returns *app_name*`.exe`.
`Assembly.GetCallingAssembly().FullName` returns different results depending on whether the hosting process is enabled. If you call `Assembly.GetCallingAssembly().FullName` with the hosting process enabled, it returns `mscorlib`. If you call `Assembly.GetCallingAssembly().FullName` with the hosting process disabled, it returns the application name.
36
-
37
-
## See Also
38
-
[Hosting Process (vshost.exe)](../ide/hosting-process-vshost-exe.md)
39
-
[How to: Debug a Partial Trust Application](../debugger/how-to-debug-a-partial-trust-application.md)
40
-
[How to: Disable the Hosting Process](../ide/how-to-disable-the-hosting-process.md)
23
+
The Visual Studio hosting process improves debugger performance and enables new debugger features, such as partial-trust debugging and design-time expression evaluation. You can disable the hosting process if you need to. The following sections describe some differences between debugging with and without the hosting process.
24
+
25
+
## Partial-Trust Debugging and Click-Once Security
26
+
Partial-trust debugging requires the hosting process. If you disable the hosting process, partial-trust debugging will not work even if partial-trust security is enabled on the **Security** page of **Project Properties**. For more information, see [How to: Debug a Partial Trust Application](../debugger/how-to-debug-a-partial-trust-application.md).
27
+
28
+
## Design-Time Expression Evaluation
29
+
Design-time expression always uses the hosting process. Disabling the hosting process in the **Project Properties** disables design-time expression evaluation for Class Library projects. For other project types, design-time expression evaluation is not disabled. Instead, Visual Studio starts the actual executable and uses it for design-time evaluation without the hosting process. This difference could produce different results.
`AppDomain.CurrentDomain.FriendlyName` returns different results depending on whether the hosting process is enabled. If you call `AppDomain.CurrentDomain.FriendlyName` with the hosting process enabled, it returns *app_name*`.vhost.exe`. If you call it the hosting process disabled, it returns *app_name*`.exe`.
`Assembly.GetCallingAssembly().FullName` returns different results depending on whether the hosting process is enabled. If you call `Assembly.GetCallingAssembly().FullName` with the hosting process enabled, it returns `mscorlib`. If you call `Assembly.GetCallingAssembly().FullName` with the hosting process disabled, it returns the application name.
36
+
37
+
## See also
38
+
39
+
-[How to: Debug a Partial Trust Application](../debugger/how-to-debug-a-partial-trust-application.md)
This dialog box allows you to specify security settings related to debugging in zone.
20
21
21
-
To access this dialog box, select a project node in **Solution Explorer**, and then, on the **Project** menu, click **Properties**. When the **Project Designer** appears, click the **Security** tab. On the **Security** page, select **Enable ClickOnce Security Settings**, click **This is a partial trust application**, and then click **Advanced**.
22
+

23
+
24
+
To access this dialog box, select a project node in **Solution Explorer**, and then, on the **Project** menu, click **Properties**. When the **Project Designer** appears, click the **Security** tab. On the **Security** page, select **Enable ClickOnce Security Settings**, click **This is a partial trust application**, and then click **Advanced**.
22
25
23
-
## UIElement List
24
-
**Debug this application with the selected permission set**
25
-
If you select this check box, the permission set selected on the **Security** page is used during debugging. By default, this option is selected.
26
+
## UIElement list
26
27
27
-
For debugging in a security zone to work, this option must be enabled; also, the **Enable the Visual Studio hosting process** option (available on the **Debug** page of the **Project Designer**) must be enabled.
28
+
**Grant the application access to its site of origin**
28
29
29
-
For WPF Web Browser Application projects, the **Debug this application with the selected permission set** option is checked and disabled.
30
+
If you select this check box, the application can access the Web site or server share on which it is published. By default, this option is selected.
30
31
31
-
**Grant the application access to its site of origin**
32
-
If you select this check box, the application can access the Web site or server share on which it is published. By default, this option is selected.
32
+
**Debug this application as if it were downloaded from the following URL**
33
33
34
-
**Debug this application as if it were downloaded from the following URL**
35
-
If you have to allow the application to access the Web site or server share corresponding to the **Installation URL** you specified on the **Publish** page, type that URL here. This option is available only when **Grant the application access to its site of origin** is selected.
34
+
If you have to allow the application to access the Web site or server share corresponding to the **Installation URL** you specified on the **Publish** page, enter that URL here. This option is available only when **Grant the application access to its site of origin** is selected.
Copy file name to clipboardExpand all lines: docs/ide/reference/debug-page-project-designer.md
+31-33Lines changed: 31 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Debug Page, Project Designer
3
-
ms.date: 11/04/2016
3
+
ms.date: 06/27/2018
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-general
6
6
ms.topic: reference
@@ -18,66 +18,64 @@ ms.workload:
18
18
---
19
19
# Debug Page, Project Designer
20
20
21
-
> [!NOTE]
22
-
> This topic does not apply to UWP apps. See [Start a debug session (VB, C#, C++ and XAML)](../../debugger/start-a-debugging-session-for-a-store-app-in-visual-studio-vb-csharp-cpp-and-xaml.md) in the Windows Dev Center.
21
+
Use the **Debug** page of the **Project Designer** to set properties for debugging behavior in a Visual Basic or C# project.
23
22
24
-
Use the **Debug** page of the **Project Designer**to set properties for debugging behavior in a Visual Basic or C# project.
23
+
To access the **Debug** page, select a project node in **Solution Explorer**. On the **Project**menu, choose **\<ProjectName> Properties**. When the **Project Designer** appears, click the **Debug** tab.
25
24
26
-
To access the **Debug** page, select a project node in **Solution Explorer**. On the **Project** menu, choose *ProjectName***Properties**. When the **Project Designer** appears, click the **Debug** tab.
25
+
> [!NOTE]
26
+
> This topic does not apply to UWP apps. See [Start a debug session (VB, C#, C++ and XAML)](../../debugger/start-a-debugging-session-for-a-store-app-in-visual-studio-vb-csharp-cpp-and-xaml.md) for UWP apps.
27
27
28
28
## Configuration and Platform
29
-
The following options allow you to select the configuration and platform to display or modify.
30
29
31
-
**Configuration**
30
+
The following options allow you to select the configuration and platform to display or modify.
31
+
32
+
**Configuration**
32
33
33
-
Specifies which configuration settings to display or modify. The settings can be **Debug** (default), **Release**, or **All Configurations**.
34
+
Specifies which configuration settings to display or modify. The settings can be **Debug** (default), **Release**, or **All Configurations**.
34
35
35
-
**Platform**
36
+
**Platform**
36
37
37
-
Specifies which platform settings to display or modify. The choices can include **Any CPU** (default), **x64**, and **x86**.
38
+
Specifies which platform settings to display or modify. The choices can include **Any CPU** (default), **x64**, and **x86**.
38
39
39
-
## Start Action
40
-
**Start Action** indicates the item to start when the application is debugged: the project, a custom program, a URL, or nothing. By default, this option is set to **Start project**. The **Start Action** setting on the **Debug** page determines the value of the `StartAction` property.
40
+
## Start action
41
41
42
-
**Start project**
42
+
**Start action** indicates the item to start when the application is debugged: the project, a custom program, a URL, or nothing. By default, this option is set to **Start project**. The **Start Action** setting on the **Debug** page determines the value of the `StartAction` property.
43
43
44
-
Choose this option to specify that the executable (for Windows Application and Console Application projects) should be started when the application is debugged. This option is selected by default.
44
+
**Start project**
45
45
46
-
**Start external program**
46
+
Choose this option to specify that the executable (for Windows Application and Console Application projects) should be started when the application is debugged. This option is selected by default.
47
47
48
-
Choose this option to specify that a specific program should be started when the application is debugged.
48
+
**Start external program**
49
49
50
-
**Start browser with URL**
50
+
Choose this option to specify that a specific program should be started when the application is debugged.
51
51
52
-
Choose this option to specify that a particular URL should be accessed when the application is debugged.
52
+
**Start browser with URL**
53
53
54
-
## Start Options
55
-
**Command line arguments**
54
+
Choose this option to specify that a particular URL should be accessed when the application is debugged.
56
55
57
-
In this text box, enter the command-line arguments to use for debugging.
56
+
## Start options
58
57
59
-
**Working directory**
58
+
**Command line arguments**
60
59
61
-
In this text box, enter the directory from which the project will be launched. Or click the Browse button (**...**) to choose a directory.
60
+
In this text box, enter the command-line arguments to use for debugging.
62
61
63
-
**Use remote machine**
62
+
**Working directory**
64
63
65
-
To debug the application from a remote computer, select this check box, and enter the path to the remote computer in the text box.
64
+
In this text box, enter the directory from which the project will be launched. Or click the Browse button (**...**) to choose a directory.
66
65
67
-
## Enable Debuggers
68
-
**Enable unmanaged code debugging**
66
+
**Use remote machine**
69
67
70
-
This option specifies whether debugging of native code is supported. Select this check box if you are making calls to COM objects or if you start a custom program written in native code that calls your project and you must debug the native code. Clear this check box to disable debugging of unmanaged code. This check box is cleared by default.
68
+
To debug the application from a remote computer, select this check box, and enter the path to the remote computer in the text box.
71
69
72
-
**Enable SQL Server debugging**
70
+
## Debugger engines
73
71
74
-
Select or clear this check box to enable or disable debugging of SQL procedures from your Visual Basic application. This check box is cleared by default.
72
+
**Enable native code debugging**
75
73
76
-
**Enable the Visual Studio hosting process**
74
+
This option specifies whether debugging of native code is supported. Select this check box if you are making calls to COM objects or if you start a custom program written in native code that calls your project and you must debug the native code. Clear this check box to disable debugging of unmanaged code. This check box is cleared by default.
77
75
78
-
Select this check box to enable the Visual Studio hosting process. This check box is selected by default. For more information, see [Hosting Process (vshost.exe)](../../ide/hosting-process-vshost-exe.md).
76
+
**Enable SQL Server debugging**
79
77
80
-
To debug in a security zone, you must enable this option and **Debug this application with the selected permission set** in the [Advanced Security Settings Dialog Box](../../ide/reference/advanced-security-settings-dialog-box.md).
78
+
Select or clear this check box to enable or disable debugging of SQL procedures from your Visual Basic application. This check box is cleared by default.
0 commit comments