Eclipse "Class File Editor" Source Not Found While Debugging

Simple way-- Works for me :)

Select Attach Source->(External Location Radio Box)External File-> Select src.zip from java/jdk1.x.x.xx folder

and done!!


There are various solutions:

  1. You can download the sources and attach them (select the dependency in the Package Explorer, open the Properties dialog for it, set the path under "Java Source Attachment")

  2. If you don't have the source, install JADClipse

  3. Use "Step Over" (F6) instead of "Step Into" (F5)

  4. If you accidentally stepped into some code, use "Step Return" (F7) to run the whole method and resume debugging after it has returned.

  5. You can tell Eclipse what you don't want to step into using "step filters".