I'm remotely debugging a Java application in Eclipse. (Bunch of Alfresco projects with attached sources in ZIP-files.)
Breakpoints do work, but:
1) Whenever I set a breakpoint in *.class file Eclipse opens *.java file when the breakpoint is reached.
2) When I set the breakpoint from within the *.java file a new breakpoint is created (apparently independent on the one set in *.class), and in the breakpoints list it does not offer 'Go to file' option.
3) The bullet indicating a breakpoint is never displayed in the *.java file; Regardless of whether the breakpoint has been created from within *.class or *.java file.
(If it wasn't for 2 and 3 I would happily stick with *.java files, of course.)
Am I doing something wrong? ...or is this usual behaviour and there's nothing I can do about it?
Check your "Order and Export" in the "Java Build Path" preference of your project.
(or in the 'Classpath' tab' of your Run Configuration Launcher)
For a local project, if the output directory ('build' or 'bin' or 'cls' or ...) appears before the 'src' of what you are debugging, you will experience that kind of "breakpoint" mix-up.
For a remote project, if the jar has the sources attached to them, it should work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With