GoodBye alert()

I have been working with Javascript and AJAX quite a bit recently. I always used alert() to debug something. At least to know that the script was able to call the method or something.

This is annoying & traditional way. I’m lazy to use Venkman. After doing some Googling about Firebug functionality, I found console.log(). Now, I can do same thing by using Firebug Console.

console-log

At least it’s not messing up my screen. w00f! It also has different logging levels:

  • console.debug()
  • console.info();
  • console.warn();
  • console.error();
  • console.trace();

For more, Console API

One Response to “GoodBye alert()”

  1. Cool! Thanks for this info.

Leave a Reply