sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

IL2CPP line numbers

Open bitsandfoxes opened this issue 3 years ago • 3 comments

Issue tracking the current IL2CPP line number support coverage: IL2CPP line number support is currently an experimental feature: Tools -> Sentry -> Advanced -> IL2CPP Line Numbers.

  • [x] Android
    • [x] 2020 - https://github.com/getsentry/sentry-unity/pull/872
    • [x] 2021
  • [x] iOS
    • [x] 2020
    • [x] 2021
  • [x] macOS
    • [x] 2020
    • [x] 2021
  • [ ] Windows
    • [ ] 2020 -
    • [x] 2021
  • [ ] Linux - Not tested yet
    • [ ] 2020
    • [ ] 2021
  • [ ] WebGL - IL2CPP methods not found in build
    • [ ] 2020
    • [ ] 2021

bitsandfoxes avatar Jul 20 '22 08:07 bitsandfoxes

I'm having trouble running this on iOS (on Unity 2021) - always getting il2cppmethods null (as defined here: https://github.com/getsentry/sentry-unity/blob/27d2de0974115faddcdda7ba7de3aa52224ab579/package-dev/Runtime/SentryInitialization.cs#L109)

vaind avatar Jul 20 '22 19:07 vaind

TODO

  • [ ] update integration test (SmokeTester.cs) to check the captured exceptions - they must contain line numbers.

vaind avatar Jul 20 '22 20:07 vaind

For smoketesting I thought we could do:

  • [ ] Check that this log doesn't show up in builds where it should work: https://github.com/getsentry/sentry-unity/blob/aedaed6b699c88161cccdfdd659f4fd03c9a433a/src/Sentry.Unity/SentryUnityOptionsExtensions.cs#L74 - verifies the logic in SentryInitialization
  • [ ] Check that event contains debug_meta

bitsandfoxes avatar Jul 22 '22 08:07 bitsandfoxes

Closed by https://github.com/getsentry/sentry-unity/pull/1165 Possible integration test for IL2CPP tracked by https://github.com/getsentry/sentry-unity/issues/1177

bitsandfoxes avatar Feb 21 '23 15:02 bitsandfoxes