Skip to content

Marshalled managed exceptions should be considered unhandled exceptions by the debugger #15037

Open
@rolfbjarne

Description

@rolfbjarne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue or pull request is an enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions