Eclipse错误:找不到源

时间:2015-01-01 18:49:21

标签: java eclipse

我是Eclipse新手。当我尝试调试我的主类时,我找不到Launcher $ AppClassLoader类。这篇文章Source not found when debugging constructor说“Just Below Source not found错误,你会看到”Edit Source Lookup Path“按钮点击它,然后点击Add按钮然后点击Java Project并包含你的项目..希望这将解决你的问题。 “

所以我这样做并添加了我的项目,就像这样。接下来会有哪些调试步骤?

enter image description here

1 个答案:

答案 0 :(得分:1)

我不确定这是否是您想要的,但您可以过滤掉您不想调试的类,如ClassLoader,或者您无法访问其来源。
我通常不希望测试放置在javajavaxsun包中的标准类。

要执行此操作,请转到Windows - > Preferences - > Java - > Debug - > Step Filtering并配置您要跳过的包或类。

enter image description here

确保在调试步骤过滤时切换

enter image description here