Is there a way to find out where (in which function or in which file) a javascript object gets created or a variable gets defined?
I am working on a website where a variable foo gets created and is available in the chrome dev tools console when I add a div with the id foo. But I can not find out where that happens. It has to be in one of the plugins.