Rabi Siddique
134 words
1 minutes
Tracing Console

This morning, I opened Slack and started reading messages from various channels. One message from Chris Hibbert, discussing logs, caught my attention. Recently, we decided to move away from DataDog, and Chris was sharing his frustrations about the transition.

In his comment, he mentioned console.trace, a tool I hadn’t explored much. After a quick search, I was amazed—it’s a simple yet powerful debugging utility.

console.trace lets you see the workflow of your app. Say you’re dealing with a complex codebase and need to understand the flow: what functions are called, when, and in what order. You can drop a console.trace statement at a specific point, run the app, and the console will display the entire stack trace up to that point, helping you understand how your code reaches a certain stage.

Further Reading#

Tracing Console
https://rabisiddique.com/posts/tracing-console/
Author
Rabi Siddique
Published at
2024-11-07