How to Debug JavaScript in Eclipse

The Eclipse Java compiler has an add-on that lets you debug JavaScript and Ajax in the editor. You must open the Web page in the Eclipse software, which executes the JavaScript in the compiler. Any errors that are found are shown, so you can debug any syntax or logic errors on your website.

Instructions

    • 1

      Click the Windows "Start" button, and type "eclipse.exe" in the search text box, then press "Enter." Double-click the executable file to open Eclipse.

    • 2

      Click the "Open Ajax Web Browser" button in the main toolbar. A window opens asking for a location of the Web page.

    • 3

      Copy the link to the Web page you want to debug in the text box, then click "OK." The Eclipse software runs the Ajax or JavaScript in the page.

    • 4

      Review the errors shown in the bottom debug panel. Any errors are displayed with the associated line number, so you can edit the code.

Related Searches:

References

Comments

Related Ads

Featured