I'm using console.log(variable) and firebug to examine javascript code. Occasionally, I get [object][object] as the value. Is there anyway of getting more information than just [object][object]?
EDIT: [object Object] is not clickable
EDIT2: I was able to log the information using console.log("My EPIC Object", epicObject);
Click on it and you will see what it contains (as long it is not a string).
Fiddle: http://jsfiddle.net/maniator/YEaW3/
console.log("My EPIC Object: " + epicObject)
. This is better logged via console.log("My EPIC Object", epicObject);
- JonnyReeves 2012-04-05 15:55
You could try logging it with console.log(JSON.stringify(myObject)).