
I want to introduce you to one library for javascript, called
BlackBird . Its main purpose is to save the developer from unnecessary debugs using alert (), which is what the slogan “Say hello to BlackBird and say by alert ()” (Say hello to Blackbird and 'goodbye' to alert ()) says the same.
Embedding in the library is extremely simple. Upload the
library files to your hosting, and place them on the hosting.
Then, include the blackbird.js and blackbird.css files in the page.
After that, in the code, instead of the annoying alert () you can specify:
log.debug( 'this is a debug message' );
log.info( 'this is an info message' );
log.warn( 'this is a warning message' );
log.error( 'this is an error message' );
These messages will appear in the window (as in the picture in the topic), which by default will be located on the left. Main features:
- Ability to filter message types directly in the debugger window.
- Resizing the debugger window and its placement.
- Hotkeys.
Works under:
- Internet Explorer 6+
- Firefox 2+
- Safari 2+
- Opera 9.5
Demo and home page