如何查看-Dsun.security.krb5.debug JVM选项生成的调试信息? [英] How do I see the debug information generated by the -Dsun.security.krb5.debug JVM option?

查看:360
本文介绍了如何查看-Dsun.security.krb5.debug JVM选项生成的调试信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行带有-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屋!

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