Eclipse “Class File Editor” Source Not Found While Debugging

前端 未结 6 1077
深忆病人
深忆病人 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: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".

提交回复
热议问题