How to use Firebug's monitor(fn)?

戏子无情 提交于 2020-01-17 05:17:39

问题


I read the Firebug documentation about the Command Line API.

Wrote monitor(functionName) in the command editor and pressed Ctrl+Enter. I can't see anything happening... May be my understanding of this command is completely wrong.

I googled but I am still confused how to use this API command?


回答1:


Work fine for me...

Check out the example i made at http://fiddle.jshell.net/gaby/LbCYn/show/

Open the console and put monitor(toBeMonitored);. Now each time you click the button it will put in the console that the method was executed..



来源:https://stackoverflow.com/questions/5537389/how-to-use-firebugs-monitorfn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!