Eclipse “Class File Editor” Source Not Found While Debugging

前端 未结 6 1057
深忆病人
深忆病人 2020-12-09 05:23

I have a project in Java that I am stepping through and when I\'m using external libraries e.g. jdom.jar I end up hammering step over to get out on the \"Class

相关标签:
6条回答
  • 2020-12-09 06:01

    Go to Project > Properties > Java Build Path > Libraries

    Expand JRE System Library.

    Expand rt.jar.

    Select Source attachment and double click or Edit. Type path the source code file (External File…) and press OK.

    0 讨论(0)
  • 2020-12-09 06:03

    You can try JADClipse

    At least you will see the code, and be able to step return and step resume more easily. I don't think there is any way to skip the classes u dont have the source for.

    0 讨论(0)
  • 2020-12-09 06:04

    If you are using gradle, port your dependencies to eclipse classpath by using the eclipse plugin.

    0 讨论(0)
  • 2020-12-09 06:11

    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!!

    0 讨论(0)
  • 2020-12-09 06:20

    open 1- help 2- Install New Software in work with click at Add http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update add source code then in attach source chose external location in patch click external file documents - eclipse - plugins - choose package we just download (source code package) example : com.android.ide.eclipse.source...... - 14 sources.zip i hope this work with you

    0 讨论(0)
  • 2020-12-09 06:22

    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".

    0 讨论(0)
提交回复
热议问题