Eclipse“类文件编辑器”调试时找不到源 [英] Eclipse "Class File Editor" Source Not Found While Debugging

查看:800
本文介绍了Eclipse“类文件编辑器”调试时找不到源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java项目,我正在逐步通过,当我使用外部库,例如 jdom.jar 我最终敲打了类文件编辑器。我真的不在乎这些图书馆中的什么,我只是用它来处理我自己的代码。



有没有办法绕过这个弹出窗口?



每次我不小心进入一个我知道的类文件没有来源,完全没有意义的课程文件,令人沮丧的敲击步骤。



图片如下:



解决方案

有各种解决方案:


  1. 您可以下载源并附加它们(在Package Explorer中选择依赖关系,打开属性对话框,设置Java Source Attachment下的路径)


  2. 如果您没有源代码,请安装 JADClipse


  3. 使用Step Over( F6 )而不是Step Into( F5


  4. 如果您不小心加入了一些代码,请使用Step Return(<返回)( F7 )运行整个方法,并在返回后继续调试。


  5. 你可以告诉Eclipse你不想进入 step filters



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 File Editor". I really don't care about whats in these libraries I'm just using them to process things for my own code.

Is there anyway to get around this popping up?

It's so frustrating hammering step over every time I accidentally step into a class file which I know has no source and is completely pointless me looking through.

image below:

解决方案

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

这篇关于Eclipse“类文件编辑器”调试时找不到源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆