---
title: "断点调试 absent line number information  Source not found "
author: "sanry"
date: "2013-05-08T10:10:47Z"
tags: []
slug: "absent-line-number-information-source-not-found"
draft: false
lastmod: "2013-05-08T10:10:47Z"
id: 1862330
url: "https://sanry.iteye.com/blog/1862330"
---

刚开始提示：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---添加上你的项目就行了