简体   繁体   English

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

[英]How Can I Get the Arguments of Function Calls from the Firebug Profiler?

Firebug profiler outputs the functions called, but not the arguments/parameters of each function call. Firebug探查器输出调用的函数,但不输出每个函数调用的参数/参数。 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. 我已经对DOM选项卡进行了挖掘,查找了我知道必须具有一些自变量的任何给定函数调用,但是未能提取出任何细节。

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! 如果我有50分,我会加赏金,但目前是49分! I can't mark this as solved though, because none of the two provided answers are really definitive. 我无法将其标记为已解决,因为提供的两个答案中没有一个是确切的答案。

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. 只是看了一下而看不到功能,firebug也显示了在探查器中调用一个函数的次数计数,尽管我可能是错的,但似乎并没有实际记录UI中的单个调用。

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? 一个明显的问题,如果您想知道它们是什么,那么根据您实际尝试实现的目标,最好不要简单地注销args?

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. 如果您想了解函数参数,它也会为您提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何让firebug探测器将函数显示为非匿名 - How to get firebug profiler to show functions as non-anonymous 萤火虫-如何检测已调用的函数或从何处调用了函数 - firebug - how can I detect what functions have been called or from where a function has been called 我可以看一下JavaScript函数在Firebug中执行需要多长时间? - Can I see how long a JavaScript function takes to execute in Firebug? 如果它调用Selenium中的Java脚本函数,如何从Web元素获取文件URL - How can i get the file URL from web element if it calls java script function in Selenium 如何从调用AngularJS中的$ http.get的函数返回承诺? - How can I return a promise from a function that calls a $http.get in AngularJS? 如何获得调用javascript函数的控件? - How can I get the control that calls javascript function? 如何过滤来自 Firebug 控制台的 AJAX 请求? - How can I filter AJAX requests from console in Firebug? 从所有调用中获取参数到限制函数 (lodash) - Get arguments from all calls to a throttled function (lodash) Jest:如何获取 jest 模拟函数中调用的参数? - Jest: How can I get the arguments called in jest mock function? 我怎样才能得到在开玩笑模拟 function 中调用的 arguments? - How can I get the arguments called in jest mock function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM