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

前端 未结 2 698
天涯浪人
天涯浪人 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:45

    If you run chrome, hit f12 to bring up the developer window. Under the Profiles you can list out the Javascript, CSS or Heap. That's built in, so you don't need a plugin, not that anything is wrong with firebug, I'm just generally anti-Firefox

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题