Sunday 1 August 2010

Java Script: debugging

The best tools for debugging JavaScript would be firebug from Firefox.

You can get firebug at  http://getfirebug.com/


If your using other browsers, have no fear there is firebug lite, it a JavaScript base firebug. It on all major browser.



What is so awesome about this tool?
  • Inject JavaScript directly on to the website page with out going to the editor.
  • Inspect properties and paramaters of JavaScript object.
Beside JavaScript FireBug have loads of other feature, goto http://getfirebug.com/whatisfirebug for more details.

FireBug Layout,
  1. Input box for writing JavaScript
  2. Out put of evaluate JavaScript
  3. Expand the 1.Java Script Input, for writing easier JavaScript.


Clicking on 3 will result in the following window.

Here you can have all the fun in the world.


TIPS
You can undo and redo with in the input area.
to undo press ctrl+z or redo press ctrl+y

Keep text editor open, while writing and testing code with fire bugs, so you would have some history.

No comments:

Post a Comment