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?
1 Answer 1
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:
- Go to the Debug perspective
- Open the Breakpoints view
- Click the J with the exclamation point by it (J!)
- Search for the exception that triggers the debug suspend
- Uncheck the two check boxes
- Say OK