在 Firefox DevTools 中查找函数的源文件

Find the source file of a function in Firefox DevTools

在Chrome Devtools 控制台中,如果我输出一个函数对象,它会显示函数的前几行。我可以单击输出中的函数名称,它会将我带到加载函数的文件和行(如果有源映射,则从原始源加载):

在新的 Firefox Devtools (Quantum) 中是否可以找到函数的源文件和行号?单击它只会显示 Function 对象本身:

我找到了 i can use Function.toSource() to view the source code in Firefox Devtools console。但它没有提示它来自哪个文件或行:

DevTools 显示一个按钮可以跳转到函数的定义已经有一段时间了。

我无法确定此功能是在哪个版本中添加的,但它一定是在 Firefox 61 when the new Console UI got enabled 左右。