You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
I'm trying to display Reports in an app of mine (using ImGUI), and I'm having trouble accessing the data hidden inside the Report. For example, I'd like to access the backtrace and spantrace (preferably as raw structs not strings), and then do things to make them appear in the UI.
I can't access these on the Report object because it doesn't provide access to any.
This only lets me access the SpanTrace and BackTrace though, but not the location (file) or any Sections. I think I might be able to get the location form the BackTrace, but I'm not sure since I haven't used that crate directly before. Also, downcasting like this isn't good, because what if the handler isn't the default eyre handler but something else, then my code completely breaks.
Any help would be much appreciated (especially if I'm barking up the wrong tree and looking in the wrong spot)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to display Reports in an app of mine (using ImGUI), and I'm having trouble accessing the data hidden inside the Report. For example, I'd like to access the backtrace and spantrace (preferably as raw structs not strings), and then do things to make them appear in the UI.
I can't access these on the
Report
object because it doesn't provide access to any.One solution is to downcast to a concrete type:
This only lets me access the SpanTrace and BackTrace though, but not the location (file) or any
Sections
. I think I might be able to get the location form the BackTrace, but I'm not sure since I haven't used that crate directly before. Also, downcasting like this isn't good, because what if the handler isn't the defaulteyre
handler but something else, then my code completely breaks.Any help would be much appreciated (especially if I'm barking up the wrong tree and looking in the wrong spot)
The text was updated successfully, but these errors were encountered: