Firebug not displaying all object properties

不打扰是莪最后的温柔 提交于 2019-12-02 01:20:10

问题


I'm tracking some data using console.log, an object with form data, and because the amount of data is greater than what FB will display in the console I get a "more..." appended to the string displayed in the console:

 Object { elementName="lessonPlanName", elementType="text", more...}

But when I click on the link I get message saying "There are no properties to show for this object."

How can I view all the items of the object in the console?

Thanks


回答1:


Sounds like a Firebug bug—happens sometimes. Try closing the tab and reopening it, it sometimes works, but usually you have to close Firefox completely.

Additionally you can do a lot more than just console.log. console.dir(obj) and console.dirxml(ob) for example. One is made for outputting object key/value pairs and one is made for outputting xml.

See the full docs here: http://getfirebug.com/wiki/index.php/Console_API




回答2:


'Show User-defined Properties' under DOM tab must be enabled.




回答3:


disable Show Own Property Only in DOM panel



来源:https://stackoverflow.com/questions/5807098/firebug-not-displaying-all-object-properties

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!