I'm debugging a JUnit test for code deployed on JBoss 7 AS via Arquillian. The debugger stops at breakpoints, but executes the old version of the code (e.g. it goes through empty lines) while I see the new version on my screen.
I have found this question: I deleted my old remote debug configuration and created a new one, removed the default sources and attached the new ones (Source --> Add --> Java Project
, and selected my projects). This didn't solve my problem.
This answer suggest cleaning the projects. My projects are managed by maven, so I run mvn clean install
from the console. This didn't help.
Since the JBoss is started by Arquillian, I don't think it matters if I have the automatic publishing turned on (Window --> Preferences --> Server --> Launching
), but it's turned on anyways.
I'm having this issue quite often right now, at seemingly random moments - I run the same (working) remote debug configuration over and over and suddenly I'm experiencing this issue even though I haven't changed the sources in debug configuration.
What is the cause of this issue? What is the quickest way to fix it?