I need to determine which JS file/line is modifying an element on my page. I'm trying to find a needle in a haystack here. For example, I'm digging through 35 .js files to find out which file is responsible for a change to some text on a webpage. It seems like too much work for such a simple task.
It could be changing it in many many different ways using jQuery, or just javascript. Method is unknown. But it happens on page load.
Is it possible to see this information in Chrome (Developer Tools)?
In Google Chrome:
<label>
element.Break on…
▶Attributes Modifications
(orSubtree Modifications
)I hope following link would help you
https://developers.google.com/chrome-developer-tools/docs/javascript-debugging#breakpoints-mutation-events
It basically tells you how to track down events that mutated given dom element