eclipse IntelliJ IDEA 中的堆栈跟踪控制台
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7716996/
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
Stack Trace Console in IntelliJ IDEA
提问by Neil Traft
Does IntelliJ have an equivalent to Eclipse's "Java Stack Trace Console," where you can paste in a stack trace and it will linkify it for you if it matches any of the source files in your project?
IntelliJ 是否与 Eclipse 的“Java Stack Trace Console”等效,您可以在其中粘贴堆栈跟踪,如果它与您项目中的任何源文件匹配,它将为您链接?
采纳答案by user1338062
??A -> Analyze Stacktrace...
??A -> Analyze Stacktrace...
The clipboard content is automatically pasted in the window, so you can just press enter.
剪贴板内容会自动粘贴到窗口中,因此您只需按 Enter 键即可。
回答by Zasz
I think it maybe possible : Look here.
我认为这可能是可能的:看这里。
IntelliJ IDEA has a StackTrace Analyzer
IntelliJ IDEA 有一个 StackTrace Analyzer
Just click Analyze Stacktrace under the Analyze menu, and copy your stack trace in the dialog box. If your bug tracker or mail client corrupts stack traces (cut or wrap lines, etc.), simply click Normalize. - See more at: http://blog.jetbrains.com/idea/2006/08/analyzing-external-stack-traces/#sthash.zyEcrI1b.dpuf
只需单击“分析”菜单下的“分析堆栈跟踪”,然后在对话框中复制您的堆栈跟踪。如果您的错误跟踪器或邮件客户端破坏了堆栈跟踪(剪切或换行等),只需单击规范化。- 查看更多信息:http: //blog.jetbrains.com/idea/2006/08/analyzing-external-stack-traces/#sthash.zyEcrI1b.dpuf
You can also install stack trace unscramble plugins (Zelix Klassmaster/ProGuard) to make sense of scrambled stacktraces.
您还可以安装堆栈跟踪解密插件 (Zelix Klassmaster/ProGuard) 来理解加扰的堆栈跟踪。
回答by duffymo
It's built into the console. When I get an exception in a JUnit test, I can click on any class in the stack trace and immediately go to the source line. No plug-in necessary.
它内置在控制台中。当我在 JUnit 测试中遇到异常时,我可以单击堆栈跟踪中的任何类并立即转到源代码行。无需插件。
I use the enterprise version 10, not the community edition.
我用的是企业版 10,不是社区版。