Having said that though, your code could easily include FireBugLite.js and call console.dir(). That way you get a strong script (firebug is THE debugging script it seems) and can easily add this to your script loader (I use combine.php from http://rakaz.nl/item/make_your_pages_load_faster_by_combining_and_compressing_javascript_and_css_files)
If you don't have server side PHP, making a Perl, Python or ASP variant shouldn't be too hard. What I'm saying is that something like the print_r() command in PHP is really a poor debugging tool. Debugging shouldn't be something you "leave in" on a production site. But by using firebuglite.js you can add debugging to your client side code easily and remove it just as easily too. On 19/04/07, Richard Quadling <[EMAIL PROTECTED]> wrote: > To generate such a thing, you could take a look at the cool PHP class > dbug at http://dbug.ospinto.com > > Converting this to JS wouldn't be too onerous. > > Is this the sort of thing you are looking for? > > On 19/04/07, David Dashifen Kees <[EMAIL PROTECTED]> wrote: > > > > True, but this may provide the opportunity for those who don't have firebug > > or firebuglite (for some unknown reason) and the output is nicer if you're > > alerting the information rather than using the console functions of firebug. > > > > - Dash - > > > > Richard Quadling wrote: > > Use Firebug and call console.dir(xxx,yyy,zzz) > > > > You can also use FireBugLite for IE to do the same. > > > > http://www.getfirebug.com > > > > On 19/04/07, David Dashifen Kees <[EMAIL PROTECTED]> wrote: > > > > > > I know I'll be using this one from time to time; thought others might > > like it, too. The dump() function is similar to PHP's print_r() and > > will show the contents of an object in a human-readable format. More > > information: > > http://www.openjs.com/scripts/others/dump_function_php_print_r.php. > > > > - Dash - > > > > > > > > > > > > > > > > > > > -- > ----- > Richard Quadling > Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" > -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
