See/Log which javascript function is being executed by the browser

前端 未结 2 716
天涯浪人
天涯浪人 2021-01-17 14:11

Is there a way/add-on that I can use so everytime any javascript function is executed in Firefox for example, the function name will be printed (to the console or w

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 14:53

    You can use the profiler of Firebug.

    Go to the console tab and click Profile. The profiler starts and all the javascript actions are "logged" till you click Profile again. Then you get the list of javascript functions that were executed in this interval.

    A similar feature is available in most modern browsers' consoles.

提交回复
热议问题