gpt4 book ai didi

java - 无法安装断点-Wildfly远程调试/Eclipse

转载 作者:行者123 更新时间:2023-12-02 04:40:48 25 4
gpt4 key购买 nike

我在尝试使用 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

最佳答案

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

关于java - 无法安装断点-Wildfly远程调试/Eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56518429/

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