Skip to content

Commit 86314ec

Browse files
authored
Merge pull request #7397 from Mikejo5000/mikejo-br18
Updates to mixed mode debugging for .NET Core
2 parents f2bb328 + 0775ce8 commit 86314ec

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

docs/debugger/how-to-debug-managed-and-native-code.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -171,42 +171,12 @@ If you have Visual Studio installed, but don't have the workloads you need, sele
171171

172172
## Configure mixed-mode debugging
173173

174-
### To configure mixed-mode debugging for a .NET Framework app
175-
176174
1. In **Solution Explorer**, select the **Mixed_Mode_Calling_App** project node and select the **Properties** icon, or right-click the project node and select **Properties**.
177175

178176
1. Select **Debug** in the left pane, select the **Enable native code debugging** check box, and then close the properties page to save the changes.
179177

180178
![Enable mixed mode debugging](../debugger/media/mixed-mode-enable-native-code-debugging.png)
181179

182-
### To configure mixed-mode debugging for a .NET Core app
183-
184-
In most versions of Visual Studio starting in Visual Studio 2017, you must use the *launchSettings.json* file instead of the project properties to enable mixed-mode debugging for native code in a .NET Core app. To track UI updates for this feature, see this [GitHub issue](https://github.com/dotnet/project-system/issues/1125).
185-
186-
1. In **Solution Explorer**, expand **Properties**, and open the *launchSettings.json* file.
187-
188-
>[!NOTE]
189-
>By default, *launchSettings.json* is in *C:\Users\username\source\repos\Mixed_Mode_Calling_App\Properties*. If *launchSettings.json* doesn't exist, select the **Mixed_Mode_Calling_App** project in **Solution Explorer** and then select the **Properties** icon, or right-click the project and select **Properties**. Make a temporary change in the **Debug** tab, and build the project. This will create a *launchSettings.json* file. Revert the change that you made in the **Debug** tab.
190-
191-
1. In the *launchsettings.json* file, add the following line:
192-
193-
```csharp
194-
"nativeDebugging": true
195-
```
196-
197-
The complete file will look like the following example:
198-
199-
```csharp
200-
{
201-
"profiles": {
202-
"Mixed_Mode_Calling_App": {
203-
"commandName": "Project",
204-
"nativeDebugging": true
205-
}
206-
}
207-
}
208-
```
209-
210180
## Set a breakpoint and start debugging
211181

212182
1. In the C# project, open *Program.cs*. Set a breakpoint on the following line of code by clicking in the far left margin, selecting the line and pressing **F9**, or right-clicking the line and selecting **Breakpoint** > **Insert Breakpoint**.

0 commit comments

Comments
 (0)