Summary
š What's your debugging superpower? Mine was discovering console.trace() - it turned hours of debugging into minutes by revealin...
For further actions, you may consider blocking this person and/or reporting abuse
I'm a big fan of articles about
console.trace()āthanks for sharing this!When debugging, I often use
console.trace()within a conditional breakpoint. Since it doesnāt have a return value, it wonāt pause execution like a debugger would, but it allows me to add trace logs almost anywhere. This is especially helpful when working with third-party libraries interacting with my code, as it doesnāt require recompiling.Thank you very much @rohitkhokhar, I am surprised that many people were not talking about the console.trace and there weren't many articles about it either. So I decided to do a write-up and share about it.
That's great! Keep it up!
I love to see articles about
console.trace()! Thanks for posting this!When troubleshooting I sometimes put
console.trace()in a conditional breakpoint. Because it has no return value, it doesn't pause like a debugger but allows you to add tracing almost anywhere ā even in third-party libraries that may be interacting with your code āĀ without recompiling.Oh wow, that is a wonderful trickāconditional breakpoint and console.trace. Thank you very much for sharing this. Will give it a try.
Thank you very much @hosseinyazdi for the tool recommendation. Will look into those too.
Have recently started using
console.trace(), often use when I'm trying to track down complex issues, especially when dealing with nested function calls or multiple services interacting or recursive calls. Great post btw :)Thank you very much @souvikinator. Yup, it is always handy when it comes to tracking down the nested function calls or multiple service interacting.
Nice, I didn't know about
console.trace- thanks! šThank you very much @gabriel_rowan_1b96f237438, hope now you know about console.trace you will enjoy using it while debugging.
Thanks for sharing this
Thank you very much @nagesh_gunji_7020fb5d963d
Thanks for sharing ā£ļø
Thank you very much @abdullah_nadir.
Thank you for this! I will try this at work :)
Thank you very much, do try and tell me how it improved your debugging experiences.
Thanks... nicely explain.
Thank you very much @bipin_kumarsinha_39ea823
Thank you for sharing this
Thank you very much @annavajjala_nikethsandil . š
Thanks for sharing. Reading the other comments, about the conditional breakpoint alongside, seems really useful for debugging, will try it out.