Eclipse remote debugging, breakpoints -.java VS.class confusion

I am debugging a Java application remotely in Eclipse. (A bunch of Alfresco projects with attached sources in ZIP files.)

Breakpoints work, but:

1) Whenever I set a breakpoint in the * .class file, Eclipse opens the * .java file when the breakpoint is reached.

2) When I set a breakpoint from a * .java file, a new breakpoint is created (apparently independent of the one set in * .class), and in the list of breakpoints it does not offer the option "Go to file" .

3) A bullet with a breakpoint is never displayed in the * .java file; Regardless of whether a breakpoint was created from a * .class or * .java file.

(If not for 2 and 3, I would love to stick with * .java files, of course.)

Am I doing something wrong? ... or is this normal behavior and I can’t do anything about it?

+3
source share
1 answer

Check your Order and Export setting in the Java Build Path setting of your project.
(or on the Class Path tab of your launcher launcher)

For a local project, if an srcoutput directory (' build' or ' bin' or ' cls' or ...) is displayed before " " , you will experience such an "interception".

, , , .

+2

Source: https://habr.com/ru/post/1765289/


All Articles