1

I started Tomcat as instructed here: http://wiki.apache.org/tomcat/FAQ/Developing using this command

catalina jpda start

I set up Intellij as depicted below

enter image description here

It connects to the debugger successfully

but when I click next to every single line I get a red x as shown below. I know for a fact the line contains executable code. Either way every line says the same thing.

enter image description here

What could I be doing wrong or differently?

rubixibuc
  • 7,111
  • 18
  • 59
  • 98
  • Did you ever get this resolved? I'm running into a similar issue and have exhausted all possible solutions I could come up with. – Display name Dec 14 '12 at 16:22
  • I did resolve it, you must make sure that the source is compiled with debugging symbols included. – rubixibuc Jan 01 '14 at 23:50

3 Answers3

1

You must make sure you include debugging symbols in your compiled code.

rubixibuc
  • 7,111
  • 18
  • 59
  • 98
0

This happens sometimes when the changes made require a server restart. It is possible that the server was not able to pick up the new changes without restarting & earlier the line did not have any executable code. Hope this helps!

mindreader
  • 1,763
  • 1
  • 20
  • 35
0

If you use Gradle, you can try my script: https://github.com/Adrninistrator/IDEA-IC-Tomcat .This script will build files for web application, create a Tomcat instance, start Tomcat and load the web application. I wrote how to debug Tomcat with IDEA Community Edition in the README.md.