【问题标题】:Unable to install breakpoint - Wildfly remote debugging / Eclipse无法安装断点 - Wildfly 远程调试/Eclipse
【发布时间】:2019-10-24 09:13:16
【问题描述】:

我在尝试使用 Eclipse 远程调试 Wildfly (9.0.1) WAR Web 应用程序时突然出错。

Unable to install breakpoint in com.yadayada.rest.PageService$Proxy$_$$_WeldClientProxy due to missing line number attributes.  Modify compiler options to generate line number attributes.

我已确保在 Eclipse 属性中检查了“添加变量属性”、“添加行号”、“添加源文件名”选项。 (注意基于其他几个类似的 StackOverflow 帖子,我已取消选中这些,应用更改,重建应用程序,离开 eclipse,回来,重新检查它们,重建)。

我分解了我的 WAR 并在一个类文件(特别是我要调试的那个)上执行了 javap -l,这向我展示了我所有方法的 LineNumberTable 和 LocalVariableTable,所以我觉得行号被包括在内.

似乎能够调试正常,但我对错误感到困惑。

我的调试过程:

1. I have a break point set in my code.
2. I have Wildfly started with the debug option (sh standalone.sh --debug)
3. I have a Remote Java Application defined in Eclipse and start debugging by clicking DEBUG on the debug configuration.

一些可能有用的信息L

1. MacOS 10.14.15; Wildfly 9.0.1; Eclipse Photon 4.8.0 build 20180619-1200; Maven 3.3.3
2. To build my WAR, I am using:  mvn clean package -Dmaven.test.skip=true

【问题讨论】:

    标签: java eclipse debugging wildfly


    【解决方案1】:

    您是如何在 MacOS 中为 Eclipse 执行“添加行号属性”的?我找不到办法。

    【讨论】:

    • Eclipse --> 首选项 --> Java --> 编译器 --> 类文件生成。这是前几个复选框选项。
    猜你喜欢
    • 2020-10-06
    • 1970-01-01
    • 2013-04-17
    • 2023-04-06
    • 2014-10-01
    • 2014-01-14
    • 2011-04-13
    • 2011-06-28
    • 2014-07-31
    相关资源
    最近更新 更多