Skip to content

iOS: make the new enableUnhandledCPPExceptionsV2 option available #4966

@sdcooke

Description

@sdcooke

Problem Statement

I would like to be able to use options.experimental.enableUnhandledCPPExceptionsV2 = true from the recent sentry-cocoa release to debug a C++ exception I'm seeing reported in Sentry.

Solution Brainstorm

I have tried adding the option to Sentry.init on the javascript side and patching RNSentry.mm to set the option but I'm hitting up against the limits of my Swift/Objective C knowledge trying to work out if it's possible to set the option (it seems to be defined in Swift and maybe not accessible to the Objective C init that's used by @sentry/react-native). It's also possible there may be changes needed in sentry-cocoa to expose option to Objective C.

I'd be happy to submit a PR if someone could point me in the right direction to fixing it!

Are you willing to submit a PR?

Yes

Metadata

Metadata

Assignees

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions