Java的热插拔同日蚀和本地计算机上远程调试 [英] Java Hotswap with Eclipses and Remote Debugging on Local Machine

查看:292
本文介绍了Java的热插拔同日蚀和本地计算机上远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出如何使code的热交换进行,而与我的编译系统调试和我来了干。

I'm trying to find out how to enable hotswapping of code while debugging with my build system and am coming up dry.

我有一个Ant构建与调试目标,像这样:

I've got an Ant build with a debug target like so:

<target name="debug_dev" depends="compile"
    description="Runs development version with the debugger.">
    <java classname="applets.TabHandler" fork="true" dir="build">
      <jvmarg value="-Xdebug" />
      <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" />
        <classpath refid="compile_classpath" />
    </java>
</target>

然后我用Eclipse中的远程调试选项连接到端口8000的调试工作正常,但像我能够,我使用Ant之前,我不能编辑code。我知道这是可能得到热交换进行与JBoss,Tomcat和其他情况的工作,但我只是运行我的程序与本地JVM的电话,你可以从上面看到的。

I then use the remote debugging option in Eclipse to connect to port 8000. Debugging works fine, but I cannot edit code like I was able to before I was using Ant. I know that it is possible to get hotswapping working with JBoss, Tomcat, and other situations, but I am just running my program locally with a JVM call, as you can see from above.

有谁知道这是否可能与我的设置?

Does anyone know if this is possible with my setup?

谢谢!

推荐答案

Java的蚂蚁热插拔工作相当出色。没必要做在日食:
HTTP://$c$c.google.com/p/hotswap/

java ant hotswap works rather well. no need to do it in eclipse: http://code.google.com/p/hotswap/

这篇关于Java的热插拔同日蚀和本地计算机上远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆