On Sun, Mar 27, 2011 at 3:55 PM, hano <[email protected]> wrote:

> How do others debug their javascript code?
>

With JavaScript debuggers.

Have you tried using any of the available JavaScript debuggers? It sounds
like that's what you need to do.

For Firefox there is Firebug. IE8/9, Chrome, and Safari all have built-in
debuggers.

All these debuggers provide these features (among many others) which should
make it easy to track down your problems:

* A DOM inspector that you can use either by moving the mouse over the
elements of interest, or navigating through a tree view of the DOM.

* Breakpoints and single stepping.

* JavaScript variable inspection and modification.

* A command line console where you can execute JavaScript code on the fly,
in the current context wherever you've stopped at a breakpoint.

Get familiar with the debuggers for your favorite browsers and you should be
able to make short work of problems like these.

-Mike

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en.

Reply via email to