debug javascript in a JSP web application?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • apngss@yahoo.com

    debug javascript in a JSP web application?

    Is there any way to debug javascript in a web application? When I
    develop JSP pages, and it has the javascript code in it. The problem is
    the debugger in Java IDE (WSAD in my case) can only debug Java code but
    not Javascript code.

    What should I do to debug javascript code?

    please advise. thanks!!

  • Erwin Moller

    #2
    Re: debug javascript in a JSP web application?

    apngss@yahoo.co m wrote:
    [color=blue]
    > Is there any way to debug javascript in a web application? When I
    > develop JSP pages, and it has the javascript code in it. The problem is
    > the debugger in Java IDE (WSAD in my case) can only debug Java code but
    > not Javascript code.
    >
    > What should I do to debug javascript code?
    >
    > please advise. thanks!![/color]

    Hi,

    What I find by far the easiest way is using Mozilla/Firefox and use the
    outputwindow for JS. Tools -> webdevelopment -> Javascriptconso le.

    That contains all errors made by your code.
    Combine this with a few alerts, and you can debug a lot.

    The Java IDE doesn't debug JS code. :-)

    Good luck!

    Regards,
    Erwin Moller

    Comment

    • Robert

      #3
      Re: debug javascript in a JSP web application?

      apngss@yahoo.co m wrote:[color=blue]
      > Is there any way to debug javascript in a web application? When I
      > develop JSP pages, and it has the javascript code in it. The problem is
      > the debugger in Java IDE (WSAD in my case) can only debug Java code but
      > not Javascript code.
      >
      > What should I do to debug javascript code?
      >
      > please advise. thanks!!
      >[/color]

      You can debug javascript in Firefox using the Venkman javascript debugger.


      Comment

      Working...