Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery logging in IE: how to get object?

Via Firefox+Firebug one can write out to the console a jQuery object and the console will, in great detail, show you what that particular object is referring to in the DOM.

console.log($(mySelector))

In IE8, using the IE8 Developer Tools, I also have access to a console log, which will write out as above. However, just like doing an alert($myObject) all I get returned is a gneric object:

LOG: [object Object]

Is there a way to get IE to show me more detail other than 'this is an object'?

like image 574
DA. Avatar asked Feb 07 '10 15:02

DA.


1 Answers

One way would be to use Firebug Lite for IE with the same call to console.log. You can either include it as a script resource in the target page or save it as a bookmarklet in IE and load it whenever it's needed.

like image 199
Kevin Gorski Avatar answered Nov 05 '22 02:11

Kevin Gorski