如何在Java Web Start(JNLP)下调试应用程序? [英] How can I debug applications under Java Web Start (JNLP)?
问题描述
我需要一个可以与当前Java VM一起使用的解决方案,如1.6.0_12。
与要远程调试的任何其他Java进程完全一样:您必须为VM设置一些参数( -Xdebug -Xnoagent -Xrunjdwp:transport = dt_socket,server = n,suspend = y,address = 12345
),然后连接到给定的端口。在Java webstart 6.0中,可以通过环境变量JAVAWS_VM_ARGS在早期版本中使用-J选项。查看详情 here 。
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.
I need a solution that will work with a current Java VM like 1.6.0_12.
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屋!