问题描述: 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替换掉。

例如:

eclipse中不能打断点的解决方案

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

eclipse中不能打断点的解决方案

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

eclipse中不能打断点的解决方案

点击ok。完成!

 

 

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

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

 

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-01-19
  • 2022-12-23
  • 2021-09-19
  • 2021-11-29
  • 2021-09-06
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-06-14
  • 2021-07-31
  • 2021-08-18
相关资源
相似解决方案