No executable code found at line

user215005 picture user215005 · May 9, 2013 · Viewed 17k times · Source

I am getting this message "No executable code found at line" when doing a remote debug from IntelliJ ver 12. This is a Java application. It is using maven for building the war. Not sure where to make the change in order to do the debugging properly.

Answer

CrazyCoder picture CrazyCoder · May 10, 2013

You need to ensure that sources in editor are in sync with the classes on the server. Classes must be compiled from exactly the same sources with the debug option enabled for the compiler.

Note that your classpath may be configured incorrectly and include some old version of the classes that you are trying to debug. It may also include different versions of the same class (like one from the .jar, another from classes) and JVM will load not the one you need.