Debug javascript included in jsp
Answered
I have inherited an old j2ee project running in weblogic. I am trying to debug into a javascript file that is included in one of the pages. For some reason, I have added a breakpoint in the js file but it never seems to stop at that breakpoint. IS it possible to debug through these included js files?
Please sign in to leave a comment.
You can debug external JS files linked from JSP using a second JavaScript run/debug configuration, debugging JS code inside JSP page is not possible at the moment, see https://youtrack.jetbrains.com/issue/WEB-12891 for details.
Great! So I should create a second parallel debug session for just the linked js files?
Yes, JavaScript Remote configuration should work, see the related answer: http://stackoverflow.com/a/18720312/104891.
I'm using the latest version of intellij and not quite following those instructions? :\
You can always find the most recent documentation online: https://www.jetbrains.com/help/idea/2016.3/debugging-javascript.html#d1271573e345.