Can WebStorm debug javascript in anything but html or js files?

I want to use WebStorm for javascript debugging, but javascript is found in many different file types.  It seems crazy limiting to require all js debuggin to be in an html file.  I dont get it.

I've got a JSP project (using Eclipse) and I have javascript in my jsp files that I want to edit and debug.  Why cant I do this using WebStorm.  its just javascript?

0
3 comments

You can debug JavaScript in JSP files using Remote JavaScript Debug configurations (see http://wiki.jetbrains.net/intellij/Remote_JavaScript_debugging_with_WebStorm_and_PHPStorm#Creating_run.2Fdebug_configuration_for_remote_debugging).

Note that WebStorm doesn't support JSP, you need to use IntellIJ IDEA Ultimate Edition (http://www.jetbrains.com/idea/) to get full support of JSP.

0

Right, but I'm not debugging server side jsp code...I'm just trying to debug client / browser side javascript.  Why does it matter what file type it is?  Its just javascript.

0

The browser understands only html and JavaScript code. JPS files are processed by an application server which generates html code and send it to the browser. When you debug JavaScript code from JSP files actually you debug JavaScript code from the generated html file. So if you put a breakpoint in JavaScript code inside JSP file the browser won't stop on it.

0

Please sign in to leave a comment.