How to set up and debug a Javascript project

Hi,

There are videos and comments about debugging javascript (it's embedded in the html), but doesn't seem to be anything about how to set up a project, load the html or js file, and proceed.

So far, I created a general Java project, and just opened up the html file from within the project.  The Javascript plugin is enabled.

However, breakpoints are enabled.  And none of the edit configurations are related to js, so it can't be run or debugged.

What is the missing piece?  How does one load and debug an html file, with js functionality embedded?

4 comments
Comment actions Permalink

Hello,

note that there are two plugins: JavaScript and "JavaScript Debugger". Are you sure that both plugins are enabled?

Hi,

>

There are videos and comments about debugging javascript (it's embedded in the html), but doesn't seem to be anything about how to set up a project, load the html or js file, and proceed.

>

So far, I created a general Java project, and just opened up the html file from within the project.  The Javascript plugin is enabled.

>

However, breakpoints are enabled.  And none of the edit configurations are related to js, so it can't be run or debugged.

>

What is the missing piece?  How does one load and debug an html file, with js functionality embedded?

>

---
Original message URL: http://devnet.jetbrains.net/message/5277370#5277370



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Yep, you're correct about that.  There's a 'JS Debugger' out there, which wasn't installed.

However, when trying to install it, the installation starts, and then there's an error:

JS Debugger: invalid CEN Header (bad compression method)

0
Comment actions Permalink

'JS Debugger' is a third-party plugin, you need to enable "JavaScript Debugger" plugin instead. It is bundled with IDEA installation so you don't need
to download it. Just open 'Installed' tab in Settings | Plugins, find "JavaScript debugger" and click on 'Enable' checkbox.

Yep, you're correct about that.  There's a 'JS Debugger' out there, which wasn't installed.

>

However, when trying to install it, the installation starts, and then there's an error:

>

JS Debugger: invalid CEN Header (bad compression method)

>

---
Original message URL: http://devnet.jetbrains.net/message/5277461#5277461



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks Nikolay, it's working now.  

It's using Firefox as the default browser.  That's ok, but I was wondering, from anyone's personal experiences - which browser tends to be the most efficient, when working with IntelliJ Idea?  Does Chrome work ok, or Safari?

0

Please sign in to leave a comment.