You ever see this in your console.log calls?
1 2 |
LOG: [object Object] |
What good is that? Yes, it’s good to know it’s an object, but get with the times IE debugger and help us debug, don’t just bug us. (corney, I’m aware)
This little trick seems to help me out when debugging IE though.
1 |
console.log(JSON.stringify(importantObject)); |
If I recall correctly, there are some limitations to this in that not all versions of IE support this. I’d have to test to fully clarify though… But I do believe this works for alerts as well:
1 |
alert(JSON.stringify(importantObject)); |