本文介绍了Eclipse编辑器中的堆栈跟踪检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个纯文本文件,我希望能够在Eclipse编辑器中打开它,并让Eclipse识别出该文件包含一些(通常格式化的)Java堆栈跟踪。



特别是,我希望能够点击这些堆栈跟踪中的行,并将Eclipse跳转到我的源代码中的正确位置 - 如果我点击堆栈的方式, stdout控制台中的痕迹,或在我的java源代码中的令牌上执行开放声明。



有人知道这是否可行?



我已经研究了使用Java Stack Trace Console,但是a)它似乎没有识别任何我的堆栈跟踪,并且b)它需要我剪切和粘贴从编辑。如果Eclipse编辑器本身以某种方式识别堆栈跟踪,那将会更冷静。

解决方案

可以点击,只需将文本粘贴到控制台视图。通常您可以在任何控制台窗口中进行粘贴,但是如果您不允许您执行此操作,则将其切换到Java Stack Trace Console并粘贴到此处。




I have a plain text file, and I want to be able to open it in an Eclipse editor and have Eclipse recognize that the file contains some (normally formatted) Java stack traces.

In particular, I'd like to be able to click on the lines in these stack traces and have Eclipse "jump" to the correct location in my source code--the way it does if I click on the stack traces in the stdout Console, or do an "Open Declaration" on a token in my java source code.

Does anyone know if this is possible?

I've looked into using the Java Stack Trace Console, but a) it doesn't seem to recognize any of my stack traces, and b) it requires me to cut and paste from the editor. It would be cooler if the Eclipse editor itself somehow recognized stack traces.

解决方案

Do be able to click, just paste the text to the Console view. Usually you can paste in any console window, but if you Console does not allow you to do this, switch it to "Java Stack Trace Console" and paste there.

See http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/views/console/ref-stacktrace_console.htm

这篇关于Eclipse编辑器中的堆栈跟踪检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 08:04