No executable code found at line [duplicate]

2019-04-20 08:13发布

This question already has an answer here:

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.

1条回答
不美不萌又怎样
2楼-- · 2019-04-20 08:53

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.

查看更多
登录 后发表回答