Skip to content

Exception doesn't get sent to sentry while in dev mode? #110

@vafada

Description

@vafada

I'm forcing my app to crash and also doing

Sentry.captureException(new Error('Oops!'), {
  logger: 'my.module'
});

but I don't see the exception getting logged in Sentry dashboard.

I see the error and stacktrace in the raven-js module:

https://github.com/getsentry/raven-js/blob/master/src/raven.js#L1498

but when going deeper to the Objective-C native module. I see the event here:

https://github.com/getsentry/react-native-sentry/blob/master/ios/RNSentry.m#L343

But the RCTExceptionsManagerDelegate delegate never gets fired:

https://github.com/getsentry/react-native-sentry/blob/master/ios/RNSentry.m#L397-L415

On the iOS simulator, i see the react native red box error dialog.

Is it not sending to sentry because i'm in development mode?

captureMessage works perfectly.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions