Inherited Getters in DevTools 作者: VertiGISMichael
Shows inherited JavaScript getters (such as ArcGIS Accessor properties) at the top level of expanded objects in the Firefox console, the way Chrome DevTools does.
扫码在 Android 版 Firefox 中打开此扩展
扩展元数据
屏幕截图
关于此扩展
When you expand an object in the Firefox console, properties defined as getters on its class appear only inside <prototype>, sometimes several levels down. Chrome DevTools lists them directly on the object. This add-on brings that behaviour to Firefox.
Expanded objects show:
• Their own properties
• Getters inherited from the prototype chain, greyed out, with their current values
• A [[Prototype]] entry that opens Firefox’s normal view, methods included
Nested objects use the same view, so you can keep drilling down. The collapsed header shows the class name and, when available, the object’s title or id (for example esri.layers.FeatureLayer {…} "Parcels").
It’s especially useful for libraries built on class getters, such as the ArcGIS Maps SDK for JavaScript, where most properties (layers, basemap, allLayers) are accessors.
Plain objects, arrays, built-ins like Map and Date, and DOM nodes keep Firefox’s default display.
Setup: open DevTools Settings (F1) → Advanced settings, check “Enable custom formatters”, then reopen DevTools and reload the page.
Note: inherited getters run when you expand an object, so their current values can be shown. A getter that throws shows an error message instead of breaking the view.
The add-on collects no data and makes no network requests. It only adds a DevTools custom formatter to pages you open.
Expanded objects show:
• Their own properties
• Getters inherited from the prototype chain, greyed out, with their current values
• A [[Prototype]] entry that opens Firefox’s normal view, methods included
Nested objects use the same view, so you can keep drilling down. The collapsed header shows the class name and, when available, the object’s title or id (for example esri.layers.FeatureLayer {…} "Parcels").
It’s especially useful for libraries built on class getters, such as the ArcGIS Maps SDK for JavaScript, where most properties (layers, basemap, allLayers) are accessors.
Plain objects, arrays, built-ins like Map and Date, and DOM nodes keep Firefox’s default display.
Setup: open DevTools Settings (F1) → Advanced settings, check “Enable custom formatters”, then reopen DevTools and reload the page.
Note: inherited getters run when you expand an object, so their current values can be shown. A getter that throws shows an error message instead of breaking the view.
The add-on collects no data and makes no network requests. It only adds a DevTools custom formatter to pages you open.
评分 0(1 位用户)
权限与数据
更多信息