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.

2 comments
Comment actions Permalink

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.

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-c
ompiling JSP's into my WEB-INF/classes as a workaround for this. Any solutions/suggestions/tips are appreciated.

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



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

0
Comment actions Permalink

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

0

Please sign in to leave a comment.