什么是Java命令行选项来设置以允许远程调试JVM? [英] What are Java command line options to set to allow JVM to be remotely debugged?
本文介绍了什么是Java命令行选项来设置以允许远程调试JVM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道有一些JAVA_OPTS设置为远程调试Java程序。
I know there's some JAVA_OPTS to set to remotely debug a Java program.
它们是什么,它们是什么意思?
What are they and what do they mean ?
推荐答案
我有这篇文章在Eclipse中为Java 5及以下版本设置此选项。
I have this article bookmarked on setting this up with Eclipse for Java 5 and below.
基本上运行它:
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
对于具有 Java 5及更高版本的Eclipse,运行它与:
For Eclipse with Java 5 and above, run it with:
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=1044
这篇关于什么是Java命令行选项来设置以允许远程调试JVM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文