如何从 Firebug Profiler 获取函数调用的参数?

发布于 2024-08-12 23:37:21 字数 202 浏览 2 评论 0原文

Firebug 分析器输出调用的函数,但不输出每个函数调用的参数/参数。有什么办法可以得到这些论点吗?

我已经在 DOM 选项卡中挖掘了任何给定的函数调用,我知道这些函数调用必须有一些参数,但未能成功提取任何细节。

编辑:仍在寻找解决方案。如果我有 50 分,我会增加赏金,但目前只有 49 分!但我无法将其标记为已解决,因为提供的两个答案都不是真正确定的。

Firebug profiler outputs the functions called, but not the arguments/parameters of each function call. Is there any way to get those arguments?

I've dug through the DOM tab for any of the given function calls that I know would have to have had some arguments, but was unsuccessful in pulling out any details.

Edit: Still looking for a solution to this. I'd add a bounty if I had 50 points, but at the moment it's at 49! I can't mark this as solved though, because none of the two provided answers are really definitive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

‖放下 2024-08-19 23:37:21

刚刚看了一下,看不到功能,Firebug 还显示了在探查器中调用函数的次数,并且似乎并未在 UI 中实际记录单个调用,尽管我可能是错的。

明显的问题,取决于您实际想要实现的目标,如果您需要知道参数是什么,那么简单地注销参数不是更好吗?

Just had a look and couldn't see the functionality, also firebug displays a count of the number of times a function is called in the profiler and doesn't seem to actually log individual calls in the UI, although I may be wrong.

Obvious question, depending what you actually trying to achieve would it not by better to simply log out the args if you need to know what they are?

北城半夏 2024-08-19 23:37:21

每次调用时参数不能不同吗?

如果您确实在寻找性能问题,

如果你想知道函数参数,它也会给你。

Can't the arguments be different every time it's called?

If you're actually looking for performance problems, try this.

If you want to know the function arguments, it will also give you that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文