【发布时间】:2015-11-30 20:25:09
【问题描述】:
我在 Eclipse 中远程调试一个 java 应用程序。我使用以下命令启动远程应用程序;
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8001,server=y,suspend=y -jar MyApp.jar
并设法在 Eclipse 中的 8001 端口上成功连接到它。我可以很好地调试它,我的断点会捕获。但是在调试时我无法在 Eclipse 中检查变量值,只有方法参数显示在变量选项卡中。在调试本地 Java 应用程序时,我可以很好地检查所有变量值,所以我认为我的 IDE 设置被排除在外了吗?
在我的 build.xml 中,我尝试使用
启用调试 <javac srcdir="@{srcdir}/java"
includes="**"
includeantruntime="false"
encoding="utf-8"
destdir="@{destdir}"
source="1.6"
target="1.6"
debug="true"
debuglevel="lines,vars,source">
<classpath refid="@{classpathref}"/>
</javac>
我在这里缺少什么?任何指针都非常感谢。
【问题讨论】:
标签: java eclipse remote-debugging