PrimeTween icon indicating copy to clipboard operation
PrimeTween copied to clipboard

Assertion Debug messages in Console are not leading to the line of execution

Open andrumak opened this issue 1 year ago • 2 comments

I found this post a few days ago and thought that I should give a suggestion to apply this approach to your Assert class. Basically it is saying, that if you'll rename your Assert class to AssertLogger (or anything ending ..Logger), it will be bypassed, when the log message is clicked in Console. I not tested this approach myself though.

Feel free to close this issue, it is a minor suggestion. Thank you for the great asset mate 💙

andrumak avatar Mar 21 '25 15:03 andrumak

I tried it and it worked, cool!

However, I don't think PrimeTween needs this change. Assert is an internal class designed for assertions and reporting user errors. Skipping the last stack trace in the Console will not lead to the user's code that produced the error, but to the internal PrimeTween's code that does the check. What do you think?

KyryloKuzyk avatar Apr 05 '25 06:04 KyryloKuzyk

I made a change in PrimeTween 1.3.0 to address this issue. I assume that will solve your request, right? https://github.com/KyryloKuzyk/PrimeTween/issues/119

Now, exceptions PrimeTween log are clickable from the Console window.

KyryloKuzyk avatar Apr 05 '25 09:04 KyryloKuzyk