在 Firefox DOM 检查器中显示对象类型

Show object type in Firefox DOM inspector

前段时间,我用Firebug在Firefox中查看了一个网页的DOM。它向我显示了对象的 type(我猜是构造函数的名称)。

今天,Firebug 不见了。对于 firefox 的 DOM 选项卡,所有内容仅显示为 Object。这让我慢了很多,我必须查看对象以查看它们的类型。

有什么方法可以恢复"good old firebug behaviour"吗?

这是 Firefox 开发工具中缺少的功能。有一个一般的“firebug gaps" bug that tries to list all of these. This particular problem is covered in this bug.

直接比较(Firefox 53.0 与 Firebug 2.0.19)表明显示的对象类型

显示仅在某些情况下漏掉了参数或属性,这已经是filed as a bug. Besides that the DOM Property Viewer also has some other bugs

正如 Tom 所说,还有一个 general bug listing all gaps related to Firebug. And there are also some display issues regarding objects within the console panel like some properties not being displayed in logged objects,正如 Tom 所说。

如果与尚未提交的 Firebug 的 UI 相比存在一些问题,您应该 report a bug for it blocking the "Firebug gaps" bug.