-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
From @prollin on Fri, 15 Mar 2024 17:21:43 GMT
Steps to Reproduce
- create a new ios project:
dotnet new iOS
- in
AppDelegate.cs
add a new field:private static int foo = 42;
- add a breakpoint in
FinishedLaunching()
- launch app
Expected Behavior
Breakpoint is hit
Actual Behavior
Breakpoint not hit
Environment
Visual Studio Code 1.87.2 + .NET MAUI 0.9.7 + C# Dev Kit 1.4.29
Version information
Version: 1.87.2 (Universal)
Commit: 863d2581ecda6849923a2118d93a088b0745d9d6
Date: 2024-03-08T15:21:31.043Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin arm64 23.1.0
dotnet --info
```.NET SDK:
Version: 8.0.202
Commit: 25674bb2f4
Workload version: 8.0.200-manifests.a7f084b6
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.202/
.NET workloads installed:
[ios]
Installation Source: SDK 8.0.200
Manifest Version: 17.2.8043/8.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.ios/17.2.8043/WorkloadManifest.json
Install Type: FileBased
[maui]
Installation Source: SDK 8.0.200
Manifest Version: 8.0.7/8.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.maui/8.0.7/WorkloadManifest.json
Install Type: FileBased
[android]
Installation Source: SDK 8.0.200
Manifest Version: 34.0.85/8.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.android/34.0.85/WorkloadManifest.json
Install Type: FileBased
Host:
Version: 8.0.3
Architecture: arm64
Commit: 9f4b1f5
.NET SDKs installed:
8.0.202 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
x64 [/usr/local/share/dotnet/x64]
registered at [/etc/dotnet/install_location_x64]
Environment variables:
Not set
global.json file:
Not found
</details>
### Build Logs
<!--
1. How to get a build log: https://github.com/xamarin/xamarin-macios/wiki/Diagnosis#build-logs
2. Place the cursor below this comment block.
3. Drag and drop the build log.
-->
### Example Project (If Possible)
<!--
1. Place cursor below this comment block.
2. Drag and drop the compressed project or files needed to reproduce.
-->
<!--
Switch to the "Preview" tab to ensure your issue renders correctly.
-->
_Copied from original issue xamarin/xamarin-macios#20315_