TLDR Dev · QUICK LINKS

FIND WHERE A SPECIFIC OBJECT WAS ALLOCATED IN JAVASCRIPT WITH DEVTOOLS

heikkila.dev2 min read

Summary from the TLDR Dev newsletter

There's a trick using Chrome DevTools' memory profiler to find the allocation point of a specific JavaScript object where you intentionally leak it as a global variable with a unique class name during debugging.