Chrome 开发人员工具:有没有办法显示调用函数的内容?

Chrome developer tools: is there a way to show what calls the function?

正如题目所述:有没有办法显示调用我要检查的函数的内容?我有一个问题,我的函数被调用了两次,我不知道第二次调用它是什么...

谢谢, uksz

您可以尝试在控制台中使用monitor() 命令。您可以监视函数调用以及调用时传递给它的参数。

https://developer.chrome.com/devtools/docs/commandline-api#monitorfunction