查看/记录浏览器正在执行哪个JavaScript函数 [英] See/Log which javascript function is being executed by the browser

查看:219
本文介绍了查看/记录浏览器正在执行哪个JavaScript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法/插件,我可以每次使用在Firefox中执行任何 javascript函数,函数名称将被打印(到控制台或任何地方)。



这是因为我找不到(很难找到)当我点击下拉菜单时执行哪个函数。

所以我想让firefox / add-on告诉我正在执行的每一个javascript函数的名字。

您可以使用 Firebug 的分析器。

转到控制台选项卡,然后点击个人资料。探查器启动,所有的javascript操作都会被记录,直到您再次点击 Profile 。然后你得到在这段时间内执行的javascript函数列表。



大多数现代浏览器控制台都提供了类似的功能。

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 where ever).

This is because I can't find (it's very hard to find) which function is executed when I click on a drop down.

So i want firefox/add-on to tell me the name of every javascript function that is being executed.

解决方案

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.

这篇关于查看/记录浏览器正在执行哪个JavaScript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆