I am an experienced .NET and Visual Studio developer who's trying to switch to Java and Eclipse. I am a newbie to Eclipse.
I am having a hard time debugging my Java programs. The "step into" debugging function always results in a "Source not found" error message with an "Edit Source Lookup Path" button whenever I try to step into a constructor. I've just installed Eclipse Enterprise Edition and not messed around with any settings.
Even debugging inner classes results in this error. Consider this code:
public class HelloWorld {
public static void main(String[] args) {
class JustForTesting {
public String s;
public JustForTesting() {
s = "Just a test";
}
}
JustForTesting n = new JustForTesting();
System.out.println("Hello World! " + n.s);
}
}
If I put a breakpoint at line 9 and try to step into the constructor (line 5) it says "Source not found"
. The title of the window is Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 24
Quite unbelievable as the code obviously resides in the same file!