Open jamescrosswell opened 3 weeks ago
Just for my understanding - and to help prioritizing this, is this just about cleaning up the check? Or would we actually get better stack frames?
Just for my understanding - and to help prioritizing this, is this just about cleaning up the check? Or would we actually get better stack frames?
If we can get Ben.Demystifier working with AOT, we should get better stack frames yes... that code above could be changed to:
var frames = (_options.StackTraceMode == StackTraceMode.Enhanced)
? EnhancedStackTrace.GetFrames(stackTrace).Select(p => new RealStackFrame(p))
: stackTrace.GetFrames().Select(p => new RealStackFrame(p));
If we can get Ben.Demystifier working with AOT
I'm failing to keep track of how to get there. Is https://github.com/getsentry/sentry-dotnet/issues/3230 the only missing part?
I'm failing to keep track of how to get there. Is #3230 the only missing part?
Yes I think so. I added some detail to that issue as well.
Continuing on from https://github.com/getsentry/sentry-dotnet/pull/3322 we need to implement Michal's other suggetions:
Finally we should be able to simplify this: https://github.com/getsentry/sentry-dotnet/blob/233e95b5a2104819c735a29490c1aaf6b336f1fd/src/Sentry/Internal/DebugStackTrace.cs#L179-L181