Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hide StackTraceMode from options to avoid accidental errors when used with IL2CPP #1033

Merged
merged 2 commits into from
Oct 24, 2022

Conversation

vaind
Copy link
Collaborator

@vaind vaind commented Oct 21, 2022

closes #879
closes #46

I've implemented the solution suggested here: #879 (comment) - not sure it's the best thing to do since we're completely forbidding anyone to use the Enhanced mode, even with Mono.

I was also thinking about using a custom setter that would throw in case you tried to set Enhanced with IL2CPP but we need to have ISentryUnity info provided and it doesn't seem like we must have it at all times (not a mandatory argument to Options at the moment).

@vaind vaind changed the title fix: hide StackTraceMode from options to avoid accidental errors when used with IL2CPP fix: hide StackTraceMode from options to avoid accidental errors when used with IL2CPP Oct 21, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2022

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- hide `StackTraceMode` from options to avoid accidental errors when used with IL2CPP ([#1033](https://github.com/getsentry/sentry-unity/pull/1033))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against f234d6f

@vaind vaind merged commit 4de7786 into main Oct 24, 2022
@vaind vaind deleted the fix/stacktrace-mode-auto branch October 24, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IL2CPP Android fails to capture message due to reflection Sentry .NET Enhanced stacktrace breaks on Mono
2 participants