Amit Kumar’s Post

The Simple JavaScript Beacon Trick For Debugging: Exposes Any Object’s True Origin Today I am going to share a debugging trick I found few days ago while trying to locate the root cause of a bug in my React application. I was debugging some state that seemed to come from nowhere. The debugger showed me the value I needed to find, but I wanted to understand where that value is coming from. This simple debugging trick helped me find where a specific object being displayed in the debugger was created. I started digging into what Chrome DevTools could actually show me. That’s when I found a feature in the memory profiler called “Allocations on timeline”. The “Allocations on timeline” feature shows you where objects got created. #javascript #chrome #web https://lnkd.in/dGGwkspK

To view or add a comment, sign in

Explore content categories