开发者

firebug: how to set watch when an <div id="abcd"> is changed by JS code?

I have a <div id="abcd"> which is changed by other c开发者_Go百科ode, I want to find out who is chaning that, can I set up a watch expression so that I can catch it in FireBug?

Thanks. Bin


Using Firebug 1.5 or 1.6, use the Inspect to select the element, then in the HTML panel, right click on the element and select eg break on attribute change or another one as you need.

See http://getfirebug.com/doc/breakpoints/demo.html


i don't know the exact wording in english, i use it in german. But if you click right on your div, there is a function called "explore element" (normally at the bottom of the context menu). Afterwords firebug displays that area where you can see all live changes...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜