I am working on a Java web application that implement its view using JSP.
Into this JSP I have some JavaScript functions that I want to debug. I know that I can do it using FireBug but I want know if I cand debug this JavaScript functions directly inside IntelliJ IDEA IDE.
It seems to me that I can debug the JavaScript inside HTML directly from IntelliJ (as shown here: https://www.jetbrains.com/idea/help/debugging-javascript.html).
But is it possible also for the JSP page? If it is possible how can I do it?
No, it's impossible. JSP is a server-side technology used by web servers running Java. JavaScript is a client-side technology used by browsers. The debugger can't use both of them simultaneously, or there should be two different debugging sessions that are running in the IJ, but I'm not sure if IJ support this feature. The only option is to use Remote Debugging, that you can use to connect to the running web server. In this way you can debug HTML page generated by the server. Even if that page is a result of JSP output you can't debug JSP in this debugging session.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With