Open
Description
The debugger should consider (at least by default) marshalled managed exceptions as unhandled exceptions, and break.
This has become more important with .NET, where we've enabled exception marshalling by default.
A managed exception may now do the following:
- For iOS and tvOS: get converted into an Objective-C exception, which may end up aborting the process (without the debugger breaking).
- For Mac Catalyst and macOS: get converted into an Objective-C exception, which AppKit swallows and goes on its merry way (without the debugger breaking).
Neither are good scenarios, so we should look into what needs to happen to make the debugger break when an exception is marshalled (it's possible runtime changes will be needed).
Ref: dotnet/maui#7176