JavaScript debugger improvements

In the latest IDEA 9.0.2 EAP build the new ‘Scripts’ tab is available in JavaScript Debug tool window:

It displays all scripts loaded by Firefox in a tree-like structure and allows to open a script in the editor to set breakpoints in it.

If you want to debug JavaScript code in a JavaEE application you can set the corresponding option in an application server run configuration:

Make sure to check the new demos featuring:

There are more IntelliJ IDEA demos available at http://www.jetbrains.com/idea/training/demos.html

Develop with pleasure!
The JetBrains Team

This entry was posted in Demos, New Features and tagged , . Bookmark the permalink.

4 Responses to JavaScript debugger improvements

  1. Sanjiv Jivan says:

    Thanks for the screencasts. Can the “javascript debugger” checkbox be added to the debug dialog of a GWT hosted mode debug configuration? This is so that I can add breakpoints in JS files included in my GWT project when running in hosted mode.

  2. Henry Sharp says:

    Nice, but what if all the javascript files are merged into a big single file before being sent to the server? It seems it doesn’t work.

  3. Nikolay Chashnikov says:

    Henry,
    in that case breakpoints in source files indeed won’t work. However you can select ‘Open Source’ from ‘Scripts’ tab as shown on the first screenshot to open the big single javascript file from the server in IDEA. After that you can put breakpoints and debug code in that file.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>