debug javascript in a JSP web application?

A

apngss

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!!
 
E

Erwin Moller

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
 
R

Robert

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top