如何获得最后执行的JS函数

时间:2015-05-06 18:35:44

标签: javascript google-chrome-devtools

我正在开发一个大型和旧项目,运行大量的JavaScript,有时在解决错误时,有点难以知道哪个函数已执行。

有没有办法获取Chrome开发者工具中最后执行的功能列表?

1 个答案:

答案 0 :(得分:1)

您有两种方法可以解决此问题:

  • 您应该在 Chrome Develper工具 中使用 Profiler

    • 第1步: enter image description here

    • 第2步 enter image description here

因此,您可以看到在分析时执行的列表函数。

  • 您还可以使用 PageSpeed Insights for Google Chrome 扩展程序(link
相关问题