I use intellij Idea to debug an application running on tomcat. But I have a problem that in some classes, line breakpoints do not work (checkpoint methods work fine ... but slowly). I can go to a specific line of code or check the variables by going to the class from the method breakpoint or from another class, but the debugger does not stop on any line. (IntelliJ shows an empty red circle (without a cross))
Update . This issue is not limited to Tomcat. I have the same problems with Weblogic with another project. So this is either an Idea or Java issue.
What could be the possible reasons? There are no special compiler options, and when I decompile the class, there are the lines LineNumberTables and LocalVariableTables. Two classes (one where line breaks are exact and one not) are in the same package. My sources exactly match the deployed code. I cleared all the idea caches (also [system] / jars that were suggested here: The debugger does not stop at the source code in Intellij IDEA )
- Java 1.6.0_43 (64 bit)
- IntelliJ Idea 12.1.3
- Tomcat 6.0.36
- Debian Validation
- It works great for another developer using Windows, so this is not a project issue.
When I turn on debugging tracing in Idea, as suggested by CrazyCoder, I get these results (showing the result when I add / remove a line break point in the idea):
Class that is good
==== Enable Breakpoint ==== [JDI: Sending Command(id=25172) JDWP.EventRequest.Set] [JDI: Sending: eventKind(byte): 8] [JDI: Sending: suspendPolicy(byte): 1] [JDI: Sending: modifiers(Modifier[]): ] [JDI: Sending: modifiers[i](Modifier): ] [JDI: Sending: modKind(byte): 5] [JDI: Sending: classPattern(String): com.teamead.fwf.web.controller.ino.datauser.flightplan.EquipmentDefinition] [JDI: Receiving Command(id=25172) JDWP.EventRequest.Set] [JDI: Receiving: requestID(int): 23] [JDI: Retrieving matching ReferenceTypes, sig=Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/EquipmentDefinition;] [JDI: Sending Command(id=25174) JDWP.VirtualMachine.ClassesBySignature] [JDI: Sending: signature(String): Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/EquipmentDefinition;] [JDI: Receiving Command(id=25174) JDWP.VirtualMachine.ClassesBySignature] [JDI: Receiving: classes(ClassInfo[]): ] [JDI: Receiving: classes[i](ClassInfo): ] [JDI: Receiving: refTypeTag(byte): 1] [JDI: Receiving: typeID(long): ref=7269] [JDI: Receiving: status(int): 7] [JDI: Looking up Class, signature='Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/EquipmentDefinition;', id=7269] [JDI: Sending Command(id=25176) JDWP.EventRequest.Set] [JDI: Sending: eventKind(byte): 2] [JDI: Sending: suspendPolicy(byte): 2] [JDI: Sending: modifiers(Modifier[]): ] [JDI: Sending: modifiers[i](Modifier): ] [JDI: Sending: modKind(byte): 7] [JDI: Sending: loc(Location): com.teamead.fwf.web.controller.ino.datauser.flightplan.EquipmentDefinition:24] [JDI: Receiving Command(id=25176) JDWP.EventRequest.Set] [JDI: Receiving: requestID(int): 24] ==== Disable Breakpoint ==== [JDI: Sending Command(id=25178) JDWP.EventRequest.Clear] [JDI: Sending: eventKind(byte): 2] [JDI: Sending: requestID(int): 24] [JDI: Receiving Command(id=25178) JDWP.EventRequest.Clear] [JDI: Sending Command(id=25180) JDWP.EventRequest.Clear] [JDI: Sending: eventKind(byte): 8] [JDI: Sending: requestID(int): 23] [JDI: Receiving Command(id=25180) JDWP.EventRequest.Clear]
Class that is not exact
==== Enable Breakpoint ==== [JDI: Sending Command(id=25182) JDWP.EventRequest.Set] [JDI: Sending: eventKind(byte): 8] [JDI: Sending: suspendPolicy(byte): 1] [JDI: Sending: modifiers(Modifier[]): ] [JDI: Sending: modifiers[i](Modifier): ] [JDI: Sending: modKind(byte): 5] [JDI: Sending: classPattern(String): com.teamead.fwf.web.controller.ino.datauser.flightplan.FlightPlanBackingBean] [JDI: Receiving Command(id=25182) JDWP.EventRequest.Set] [JDI: Receiving: requestID(int): 25] [JDI: Retrieving matching ReferenceTypes, sig=Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/FlightPlanBackingBean;] [JDI: Sending Command(id=25184) JDWP.VirtualMachine.ClassesBySignature] [JDI: Sending: signature(String): Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/FlightPlanBackingBean;] [JDI: Receiving Command(id=25184) JDWP.VirtualMachine.ClassesBySignature] [JDI: Receiving: classes(ClassInfo[]): ] [JDI: Receiving: classes[i](ClassInfo): ] [JDI: Receiving: refTypeTag(byte): 1] [JDI: Receiving: typeID(long): ref=7257] [JDI: Receiving: status(int): 7] [JDI: Looking up Class, signature='Lcom/teamead/fwf/web/controller/ino/datauser/flightplan/FlightPlanBackingBean;', id=7257] ==== Disable Breakpoint ==== [JDI: Sending Command(id=25186) JDWP.EventRequest.Clear] [JDI: Sending: eventKind(byte): 8] [JDI: Sending: requestID(int): 25] [JDI: Receiving Command(id=25186) JDWP.EventRequest.Clear]
NeplatnyUdaj
source share