Skip to content

The debugger isn't "breaking" correctly when there is an exception in VSMac 2022 / VSMac Preview 2022 #7085

@xDaijobu

Description

@xDaijobu

Android application type

Classic Xamarin.Android (MonoAndroid12.0, etc.)

Affected platform version

VSMac & VSMac Preview

Description

net6.0-android ( VSMac & VSMac Preview )
image

Xamarin.Android ( VS Windows )
image

Xamarin.Android ( VSMac & VSMac Preview )
image
Bc6d36a4fbb6a4e8c9ed825676c86a77c637904472730329015_Screen_Shot_2022-06-10_at_15 35 26

source: ‘Mono.Android’
stacktrace:

[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object.

at Android.Runtime.JNINativeWrapper._unhandled_exception (System.Exception e) [0x0000e] in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:12
at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V (_JniMarshal_PPL_V callback, System.IntPtr jnienv, System.IntPtr klazz, System.IntPtr p0) [0x0001d] in /Users/runner/work/1/s/xamarin-android/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:111
at (wrapper native-to-managed) Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V(intptr,intptr,intptr)

Steps to Reproduce

  1. Create a Xamarin.Forms / Xamarin.Android project.
  2. throw new Exception (“Fire!”);
  3. run the project with VSMac / VSMac Preview

test.zip

Did you find any workaround?

https://discord.com/channels/732297728826277939/738043671575920700/983915567184498739

'Start without debugging'
image

image

Relevant log output

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions