如何在 Java Web Start (JNLP) 下调试应用程序? [英] How can I debug applications under Java Web Start (JNLP)?
问题描述
我知道如何使用 Eclipse 调试远程 Java VM,但如何使用 Java Web Start 程序进行调试.我有一个只出现在 Java Web Start 中的问题.它必须与安全相关.
I know how I can debug a remote Java VM with Eclipse, but how can I do it with a Java Web Start program. I have a problem that only occurs in Java Web Start. It must be security related.
我需要一个可以与当前的 Java 虚拟机(如 1.6.0_12)配合使用的解决方案.
I need a solution that will work with a current Java VM like 1.6.0_12.
推荐答案
这与您想要远程调试的任何其他 Java 进程完全相同:您必须为 VM 设置一些参数 (-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=12345
) 然后连接到给定的端口.在 Java webstart 6.0 中,这可以使用 -J 选项完成,在早期版本中通过环境变量 JAVAWS_VM_ARGS 完成.在此处查看详细信息.
It's quite the same like with any other Java process you want to debug remotely: You have to set up some arguments for the VM (-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=12345
) and then connect to the given port. In Java webstart 6.0 this can be done with the -J option, in earlier version via environment variable JAVAWS_VM_ARGS. See details here.
这篇关于如何在 Java Web Start (JNLP) 下调试应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!