By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,384 Members | 1,794 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,384 IT Pros & Developers. It's quick & easy.

debug javascript in a JSP web application?

P: n/a
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!!

Sep 29 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
ap****@yahoo.com wrote:
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!!


Hi,

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

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
Sep 29 '05 #2

P: n/a
ap****@yahoo.com wrote:
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!!


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

http://www.hacksrus.com/~ginda/venkman/
Sep 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.