gpt4 book ai didi

java - build.properties添加: compilerArg in Eclipse plug-in

转载 作者:行者123 更新时间:2023-12-02 04:07:22 24 4
gpt4 key购买 nike

我想将以下编译器属性添加到我为 Lotus Notes 开发的 Eclipse 插件中,以便当发生异常时,我可以得到发生异常的行:

debug=true debuglevel=lines,vars,source

在看到 this question 后,我认为这是最好的方法。

所以我在 build.properties 文件中放入了这个新行

compilerArg ="-debug=true -debuglevel=lines,vars,source "

它不显示发生异常的行(仍然显示“未知来源”)

任何想法都值得赞赏。

编辑:我正在使用 Eclipse 从更新站点项目运行构建。

最佳答案

Eclipse 使用 Eclipse 'ecj' 编译器而不是 'javac',因此您需要指定 'ecj' 能够理解的参数(请参阅 here )。因此 -g-g:lines,vars,source 设置所有调试信息。

关于java - build.properties添加: compilerArg in Eclipse plug-in,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34137344/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com