Farrukh Chishti
Farrukh Chishti

Reputation: 8467

Can't apply debug on java file in eclipse

On applying breakpoints to a java file in debug mode, the breakpoints are not stopping the control flow of that file. However, the breakpoints are stopping the control flow on another file in the same package. When i apply breakpoints on one file the break point changes to a circle with tail and the break point stops the control flow while on applying it to other file it remains a circle only and does not stop the control flow. How to get the break point to stop the control flow?

Working: enter image description here

Not working: enter image description here

Upvotes: 0

Views: 5144

Answers (3)

rdj7
rdj7

Reputation: 1955

Circle with tail : Breakpoint is successfully set because Your Source code matches with the Byte Code and debug control will reach there.

Only Circle : Source code differs from Byte code (May be you are running a older Snapshot of code). Control will never reach at this breakpoint. You will have to update your JARs to get control to these breakpoints.

Solution : In case of remote debugging this happens often, you can get your problem solved by replacing older JARs with new ones obtained after building your project.

Upvotes: 0

user7016813
user7016813

Reputation: 31

Please guarantee that your code and server are hold consistent, will otherwise have this question.

Upvotes: 0

Juned Ahsan
Juned Ahsan

Reputation: 68715

Ok as you have mentioned as a reply to my comment that you are doing remote appliction debugging. So most likely the problem is that you have different version of code in your server and in your eclipse.

In short it seems that executable doesn't map their source lines all that well to the generated .java file source lines. So what looks like a source line in your real source isn't actually executable in the generated source, so it can't actually sustain a breakpoint.

Hope it helps!

Upvotes: 2

Related Questions