如何查看-Dsun.security.krb5.debug JVM选项生成的调试信息? [英] How do I see the debug information generated by the -Dsun.security.krb5.debug JVM option?
问题描述
我正在运行带有-Dsun.security.krb5.debug=true
选项的JAR.
I'm running a JAR with the option -Dsun.security.krb5.debug=true
.
如何以及在哪里看到生成的调试信息?
How and where do I see the debug information generated?
推荐答案
这是JVM的参数.通常与-Dsun.security.jgss.debug = true
This is a parameter for JVM. It usually goes with -Dsun.security.jgss.debug=true
然后,要查看调试行,请执行任何JGSS/Kerberos操作,例如教程中所述的操作: http://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/.
Afterwards, to see debug lines, perform any JGSS/Kerberos operation, for example those described in tutorial: http://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/.
调试信息将写入控制台.要查看它,您可以从控制台java -jar yourapp.jar启动jar,或强制显示控制台: https://stackoverflow.com/a/28477682/1206341
Debug information is written to console. To see it you can either start jar from console java -jar yourapp.jar, or force showing console: https://stackoverflow.com/a/28477682/1206341
这篇关于如何查看-Dsun.security.krb5.debug JVM选项生成的调试信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!