简体   繁体   English

使用IE9调试模式显示对象内容

[英]Display object content with IE9 debug mode

I have some JS which works with FF but not IE. 我有一些与FF兼容的JS,但与IE无关。 While I like firebug more, IE9's debug mode (F12) isn't bad. 虽然我更喜欢Firebug,但IE9的调试模式(F12)不错。 Problem is I can't figure out how to display the content of an object like console.log(obj) does with firebug. 问题是我无法弄清楚如何显示对象的内容,例如console.log(obj)对Firebug的显示。 Can anyone help? 有人可以帮忙吗? Thanks 谢谢

使用console.dir()显示对象

console.dir(obj);

You can set breakpoints and use the watch feature to look at objects, but I'm not sure it will give you the same level of detail exposed in Firebug 您可以设置断点并使用监视功能来查看对象,但是我不确定它是否会为您提供Firebug中公开的相同级别的细节。

Have you tried Firebug lite ? 您是否尝试过Firebug lite

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM