consolation icon indicating copy to clipboard operation
consolation copied to clipboard

Show stack traces

Open pavelkostyurin opened this issue 6 years ago • 2 comments

So maybe this is the question not to the developers of this, but maybe you know the answer. What should I do (is it possible) to display stack traces for exception messages?

pavelkostyurin avatar Feb 01 '20 16:02 pavelkostyurin

Adding this to DrawExpandedLog() worked for me.

 if (log.type == LogType.Exception && log.stackTrace != "")
                    GUILayout.Label(log.stackTrace);

pavelkostyurin avatar Feb 02 '20 10:02 pavelkostyurin

I'm going to reopen this — it'd be useful to show the stack trace by clicking on a line. We store the stack trace; might as well provide a way to see it.

mminer avatar Feb 05 '20 18:02 mminer

I see this is a bit of an old request - are you still considering it? If so, would you consider a PR? No promises that I can, but we've been using the package and it's working real nice for us, stack traces would be an excellent upgrade to our workflow for sure 😊

ettmetal avatar Sep 30 '22 09:09 ettmetal

@ettmetal: I definitely still think stack traces are a useful feature to add. A PR would be rad; I’m very happy to take contributions. I’ve been meaning to implement it myself but I just haven’t got around to it.

mminer avatar Sep 30 '22 16:09 mminer

I added the ability to view stack traces in dcd5cd9. Click a log to see the trace appears below it. Screen Shot 2023-07-14 at 15 47 42

mminer avatar Jul 14 '23 22:07 mminer