BlackBird offers a dead-simple way to log messages in JavaScript and an attractive console to view and filter them. Although most of us are already familiar with the FireBug console
, BlackBird supplies us with an easy, simple and Cross Browser live console that is available upfront anytime you’d like.
BlackBird_rails is a plugin i created to simplify the integration of BlackBird into your rails applications, simply install it by invoking:
script/plugin install git://github.com/eladmeidar/blackbird_rails.git
and the required javascripts, stylesheets and images will be copied into your public/
folder. Next thing you’ll probably want to do is adding the include_black_bird
snippet into your <head>
block:
<%= include_black_bird %>
Which will add the blackbird javascript and CSS tags. It’s also important to point out, that the helper will only generate these tags when running the development environment, so you are hassle free regarding that matter.
you’ll still be required to remove all log.something
calls in your javascript source, otherwise IE is going to be mad at you.
Now stubs are generated to prevent Javascript errors if you leave the log
calls, note that if you change the namesspace, you’ll have to manually edit the helper to use the right namespace
From this point on, you can use BlackBird exactly as the home page explains.
Drag this bookmartlets into your favorites toolbar and you’ll be able to:
- clear
- move
- resize
- and toggle
your BlackBird window anytime you’d like.
Copyright © 2009 Elad Meidar, released under the MIT license