0

I have a problem with eclipse debugging. I had a proper working code and few hours ago I add one more external library to do something new. When I run the program now it works properly, but when I want to debug it, it stopped on the first line of a new part of the code (the one using the newest external library). It shows the info:

"Class File Editor Source not found The source attachment does not contain the source for the file ModelBuilder.class"

When I try to step over I just receive the same information but connected with other files. After stepping over a multiple times I finally get back to my code and can debug the rest of the program normally. Of course I can do it always but does anybody know the solution to that problem, not to click step over multiple times but debug normally?

Mogsdad
46k21 gold badges167 silver badges289 bronze badges
asked Aug 2, 2012 at 13:12

1 Answer 1

0

It should not enter the external library code unless you step into it, or there's an exception in that code. If you find yourself stepping through code you don't have source to, use Step Return, which jumps to the end of whatever method you're in.

If it is caused by an exception in the library code and you want to ignore it, go to Window> Preferences> Java> Debug and uncheck "Suspend execution on uncaught exceptions".

If you know what exception is causing the execution to suspend, then you could also try this:

  1. Go to the Debug perspective
  2. Open the Breakpoints view
  3. Click the J with the exclamation point by it (J!)
  4. Search for the exception that triggers the debug suspend
  5. Uncheck the two check boxes
  6. Say OK
answered Aug 2, 2012 at 13:16
Sign up to request clarification or add additional context in comments.

9 Comments

Even if I put the breakpoint after the line I was talking about, debugger will show the message I was talking about. Now, I am dealing with that with resuming and noticing if I already get out of the problematic line. clicking Step Return take a lot of time to get out of this message (because than show another with different files like I've written). But the point is why this problem happens, not how to deal with it, and I have no idea...
Which class are you in when you see that message, a class you have code for, or a class in a library that you don't have code for?
No, it doesn't look like exception. I think I have wrong configured debugger but I checked many things and nothing helped.
Go to the debug perspective, look for the Breakpoints tab, and delete all the breakpoints (the double-X). Then add back the one breakpoint that you want it to hit in your code and try again.
Sorry, checking it more carefully it looks like an exception. Before first "resume" it is a "NullPointer" but later are other different. But I am sure that the code is written properly and I know that I used to use it that way once a few months ago and it worked. That is why I think it is the configuration problem.
|

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.