*
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
Author

OO Java Script Debugging

Ganesh Bhambure
Ranch Hand

Joined: Aug 19, 2008
Posts: 32
Hi

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

Thanks
B Webb
Greenhorn

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
Hi,
But is their IDE which can help to debug Java Scripts , like Java Code ?

Thanks
[ August 27, 2008: Message edited by: Ganesh Bhambure ]
Stoyan Stefanov
author
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="http://www.thinkinginjavascript.com" target="_blank" rel="nofollow">my OOJS book</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: OO Java Script Debugging