How Javascript debugger works? Does it only work in plain .html files or in a J2EE project (jsp) ?

Hi,

Looking at the feature set and the help I can't understand if the JS debugger only works in plain simple html files or if we can enable it in a J2EE project that uses JSP and has external .js files included in the page.

In case it supports the latter, how can I configure it?

0
3 comments

Use a recent build.
Create a JS Debug "Remote" Run Configuration.
Specify the full http path to your JS files in the appropriate parent folder.
See screenshot.



Attachment(s):
jsdebug.png
0
Avatar
Permanently deleted user

thanks for the tips but how can I make the JS debugger work in JavaScript that is inside a JSP file?
When I set the breakpoint the message tries to explain how to make it work but I don't understand how to do it....

0
Avatar
Permanently deleted user

Currently IDEA cannot debug JavaScript code in JSP files directly. However you can debug JavaScript in html files generated for JSPs.
You can see a demo about JS debugging: http://www.jetbrains.com/idea/training/demos/JavaScript_Debugger/server_side_js_debugger.html

thanks for the tips but how can I make the JS debugger work in JavaScript that is inside a JSP file?
When I set the breakpoint the message tries to explain how to make it work but I don't understand how to do it....

>

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



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

0

Please sign in to leave a comment.