为 Eclipse 本身(平台)启用控制台日志记录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32148765/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Enable console logging for Eclipse itself (the platform)
提问by Eric B.
I'm having a trouble with my JVM/JRE and Eclipse itself. I'm running a version of Juno under Windows 8.1 with IBM JVM. When I try to access/install new software from an https P2 URL, I get the following error message:
我的 JVM/JRE 和 Eclipse 本身有问题。我正在使用 IBM JVM 在 Windows 8.1 下运行 Juno 版本。当我尝试从 https P2 URL 访问/安装新软件时,我收到以下错误消息:
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: No trusted certificate found
I'm not entirely sure what the problem is, but I figured it might have something to do with the cacerts in my jvm. However, I have replaced it with a cacerts file from a functional system and I still have the same issue.
我不完全确定问题是什么,但我认为这可能与我的 jvm 中的 cacerts 有关。但是,我已经用功能系统中的 cacerts 文件替换了它,但我仍然遇到同样的问题。
I thought that adding -Djavax.net.debug=true
in my eclipse.ini would show me additional debug information, but launching eclipsec.exe from the command line doesn't print out anything in my command prompt window.
我认为添加-Djavax.net.debug=true
eclipse.ini 会显示额外的调试信息,但从命令行启动 eclipsec.exe 不会在我的命令提示符窗口中打印出任何内容。
What is the right way to enable/launch Eclipse such that I can see debug logs/traces/etc in the command window? Or is there another way to try and debug this problem?
启用/启动 Eclipse 以便我可以在命令窗口中看到调试日志/跟踪/等的正确方法是什么?或者有没有其他方法可以尝试调试这个问题?
回答by F. Stephen Q
Try starting Eclipse from the command line with the -consoleLog
and -debug
arguments; i.e. eclipse.exe -consoleLog -debug
.
尝试使用-consoleLog
和-debug
参数从命令行启动 Eclipse ;即eclipse.exe -consoleLog -debug
。
回答by jansohn
Ran into the same issue. Here's how I solved it. In your eclipse.ini
遇到了同样的问题。这是我解决它的方法。在你的eclipse.ini
- change the
-vm
path fromjavaw.exe
tojava.exe
to get the output written to the console - add a debug argument to
-vmargs
, e.g.-Djavax.net.debug=ssl
- 将
-vm
路径从javaw.exe
to更改为java.exe
将输出写入控制台 - 添加调试参数
-vmargs
,例如-Djavax.net.debug=ssl
Now start your Eclipse from the command line with
现在从命令行启动你的 Eclipse
eclipsec.exe -consoleLog
Now you should be able to see the debug messages in the console window.
现在您应该能够在控制台窗口中看到调试消息。