【发布时间】: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