Javascript: Easy Javascript Debugging using Firebug Console.
Instead of using the traditional 'alert' statements for debugging, the best way to debug is using Firebug console.
What you need : Firefox browser and Firebug addon
A simple example:
INSTEAD OF :
function foo() {
if(some condition) {
alert("Status update");
}
}
USE :
function foo() {
if(some condition) {
console.log("Status update");
}
}
No comments:
Post a Comment