Convenient debug with BlackBird
I want to introduce you to one javascript library called BlackBird . Its main purpose is to save the developer from unnecessary debug using alert (), which is what the slogan “Say hello to BlackBird and say alert ()” says (Say hello to Blackbird and 'goodbye' to alert ()).
Embedding in a library is extremely simple. Upload 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 tired alert (), you can specify: These messages will appear in a window (as in the picture in the topic), which by default will be located on the left. Key features:
It works under:
Demo and homepage
Embedding in a library is extremely simple. Upload 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 tired alert (), you can specify: These messages will appear in a window (as in the picture in the topic), which by default will be located on the left. Key features:
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' );
- The ability to filter message types directly in the debugger window.
- Resizing the debugger window, and its placement.
- Hotkeys
It works under:
- Internet Explorer 6+
- Firefox 2+
- Safari 2+
- Opera 9.5
Demo and homepage