File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes OO Java Script Debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "OO Java Script Debugging" Watch "OO Java Script Debugging" New topic

OO Java Script Debugging

Ganesh Bhambure
Ranch Hand

Joined: Aug 19, 2008
Posts: 32

One of the most common problem with script that we can debug it.

Does the Object Oriented Java Script may help in debugging Script ?

If yes then that will be great!!!

B Webb

Joined: Sep 30, 2006
Posts: 7
There are two methods I have found useful in debugging and are listed here in my order of preference:

1. Firebug plugin for Firefox. It allows you to view the DOM and put breakpoints within your class source so you can trace and view values as code gets executed.

2. Under your IE preferences change the advanced settings to allow debugging. Install the free download from MS for Visual Web Developer or Studio. This will allow IE to throw an error and display the source where the error occured. This approach is not very elegant, but is better than the useless messages it shows without it.
Ganesh Bhambure
Ranch Hand

Joined: Aug 19, 2008
Posts: 32
But is their IDE which can help to debug Java Scripts , like Java Code ?

[ August 27, 2008: Message edited by: Ganesh Bhambure ]
Stoyan Stefanov
Ranch Hand

Joined: Jul 16, 2008
Posts: 61
Hi Ganesh,

the book doesn't go into debugging, but as B Webb says, there's the excellent Firebug extension and also several debuggers for IE by MS. They allow you to set breakpoints, step in, out, etc, everything you could expect from a debugger.

Is there a good IDE with debugging built-in? That I don't know, in the past I've tried some Eclipse plugins, there was a one pretty decent one, there's also Aptana IDE which should be pretty good. Not a big IDE fan myself, I cannot recommend you something specific.

<a href="" target="_blank" rel="nofollow">my OOJS book</a>
I agree. Here's the link:
subject: OO Java Script Debugging
jQuery in Action, 3rd edition