Matt wrote on 13 sep 2004 in comp.lang.javas cript:
[color=blue]
> What is the best way to debug javascripts? Do it in Visual Interdev?
> Or just look at if any errors come from browsers.
>[/color]
Like al other script languages:
Be logical.
Be coherent.
Be modular.
Imagine all possible inputs.
Test with breakpoints [alert()].
Test in relevant environments [browsers].
..... learn.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)
Matt wrote:
[color=blue]
> What is the best way to debug javascripts? Do it in Visual Interdev?
> Or just look at if any errors come from browsers.[/color]
Run Mozilla and IE in parallel. Get things working first in Mozilla (with a
decent debugger if you need it), then fix any IE incompatabiliti es.
Get hold of an xunit harness for Javascript and use test driven
development.
Comment