Skip to content

MacCatalyst currently doesn't surface unhandled exceptions in user code so we should help MAUI users out #7176

Closed
dotnet/macios
#21778
@PureWeen

Description

@PureWeen

Currently AppKit will handle any exception thrown from user code and won't surface it to the user.

The following code

object test = null;
test.GetHashCode();

Will just throw an NRE with no indication to the user that an NRE has occurred

We should wire into the following method

Runtime.MarshalManagedException += Runtime_MarshalManagedException;

And break when a debugger is attached to help the user (and us) be more successful.

We should also wire up our UI Tests so that any exceptions that make it here are surfaced.

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-platformIntegration with platformsblockedWork that is currently blockedlegacy-area-desktopWindows / WinUI / Project Reunion & Mac Catalyst / macOS specifics (Menus & other Controls))partnerIssue or Request from a partner teampartner/maciosIssues for the Mac / iOS SDKplatform/iosplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingt/desktopThe issue relates to desktop scenarios (MacOS/MacCatalyst/Windows/WinUI/WinAppSDK)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions