How to remote debug JSP files with IDEA 8.x
I haven't been able to find out how to do this anywere else.
I have an environment where my IDE is running locally on my MAC and the tomcat instance runs on a remote server where code is deployed. I can debug the app without any issues until i hit a line in the JSP file. At this point, IDEA says that it cannot find the class files. I would like to avoid pre-compiling JSP's into my WEB-INF/classes as a workaround for this. Any solutions/suggestions/tips are appreciated.
Please sign in to leave a comment.
Which kind of run configuration do you use? You need to use Tomcat Remote run configuration instead of plain Remote configuration in order to debug
JSP files.
--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Thanks for the reply. The problem was with TOMCAT_BASE directory. Its not same as the default directory that idea picks. Once i changed that, it works fine.
Would setting environment variable CATALINA_BASE in regular remote debug (not in remote tomcat configuration) also work? Thanks