best way to debug javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Matt

    #1

    best way to debug javascript

    What is the best way to debug javascripts? Do it in Visual Interdev?
    Or just look at if any errors come from browsers.
  • Evertjan.

    #2
    Re: best way to debug javascript

    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)

    Comment

    • Duncan Booth

      #3
      Re: best way to debug javascript

      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

      Working...