问题
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