Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use alert() for a long debug message?

I'm trying to alert() the properties of the javascript object. Since the text in alert isn't scrollable, I can see only part of it. How do I fix this? I'm using FF 3.5.

like image 383
Eugene Yarmash Avatar asked Feb 21 '10 18:02

Eugene Yarmash


1 Answers

Install Firebug and use console.log(myObj);

You can inspect the object properly in this way!

like image 182
David Snabel-Caunt Avatar answered Oct 13 '22 00:10

David Snabel-Caunt