如何从 Firebug Profiler 获取函数调用的参数?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
刚刚看了一下,看不到功能,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?
每次调用时参数不能不同吗?
如果您确实在寻找性能问题,
如果你想知道函数参数,它也会给你。
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.