cloudyboy

问题描述: eclipse中调试代码,加入断点后,运行程序弹出对话框 ...........

 unable to install breakpoint in ...(file name) due to miss line number attributes.

       midify compliter options to generate line number attributes.

 reason:

    absent line number information

 

解决方案:

首选1.

  当前工程中所用到的库(jre),应该是eclise自带的。用自己所安装的jre替换掉。

例如:

上图中红框显示就为自带的,然后......选中>>>右击>>>Properties,会出现下图

确实为自带的,然后选择Alternate JRE

点击ok。完成!

 

 

办法2.如果没有解决,按如下方法试一下。(一般情况下,办法1 就能解决。)

  Project--->Properties---->java Compiler---->classfile Generation
  选中下面的复选框,点击Apply后,点击OK

 

分类:

技术点:

相关文章:

  • 2019-02-25
  • 2021-09-19
  • 2021-09-06
  • 2021-04-09
  • 2021-11-17
  • 2021-11-03
  • 2021-06-12
  • 2021-09-07
猜你喜欢
  • 2022-01-19
  • 2021-06-14
  • 2021-12-04
  • 2021-08-18
  • 2022-01-19
  • 2021-11-27
相关资源
相似解决方案