zoukankan      html  css  js  c++  java
  • Unable to install breakpoint in due to missing line number(转载) 规格严格

    Unable to install breakpoint in due to missing line number

    不能调试JavaBean!

    在eclipse中不能调试,总是报 错:“Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes”

    弄了好半天 也没弄出来,最后google了一下,总算解决了。原因是:ANT编译的class Eclipse不认,因为eclipse也会编译class。怎么让它们统一呢,就是在build.xml里的javac标签里加上一句 debug="true",一切就OK了。

    如:<javac ... debug="true">

    我查看的资料的片段:

    The solution given above involving moving your eclipse workspace to be in the app-server's directory is not a very good idea.
    The issue, most likely, is that there are two compiles happening -- eclipse's and ant's. The settings for the eclipse compiler don't affect the ant build even if you launch the ant build from within eclipse. Ant controls it's own compiler settings. You can tell ant to generate debugging info like this:

    链接:http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8309.html

     

    ant

    Make sure you are setting debug=true in your compilation task, otherwise you won't be able to debug.

     

    The solution given above involving moving your eclipse workspace to be in the app-server's directory is not a very good idea.
    The issue, most likely, is that there are two compiles happening -- eclipse's and ant's. The settings for the eclipse compiler don't affect the ant build even if you launch the ant build from within eclipse. Ant controls it's own compiler settings. You can tell ant to generate debugging info like this:

    Code:

    <javac ... debug="true" .../>

  • 相关阅读:
    安卓学习12
    安卓学习11
    安卓学习10
    安卓学习9
    Python3之json&pickle模块
    Mysql之基础sql语句
    Django模型层之单表操作
    创建Django项目与应用的两个命令
    windows命令行切换目录
    Django视图层之请求对象(request)和响应对象(HttpResponse)
  • 原文地址:https://www.cnblogs.com/diyunpeng/p/2150389.html
Copyright © 2011-2022 走看看