ITeye博客

断点调试 absent line number information Source not found

sanry · 2013-05-08 10:10 · Markdown

刚开始提示:absent line number information

在网上找了如下方法,试了还是不行

第一种方法: 将<javac 中的 debug="true"(使用Ant编译的)

第二种方法: 项目->属性->Java编译器->类文件生成->将行号属性添加至生成的类文件(由调试器使用)->打勾

Project--->Properties---->java Compiler---->classfile Generation 选中下面的复选框,点击Apply后,点击OK就可以了,如果复选框本来是选中的,取消后点apply。然后在重新选中点apply,再点ok。

基于以上方法都没有解决我的问题,调试时提示Source not found 后来找到另一方法解决了,如下:

在你的debug是出现那个 Source not found 的视图里 Source not found 下面 出现一个,Edit Source Lookup Path....

点击这个按钮,---add--java Project---添加上你的项目就行了

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。