如何输出LogCat中到控制台?控制台、LogCat

2023-09-05 03:15:43 作者:y1.歲拽起

有没有一种方法,使LogCat中的输出出现在控制台视图在Eclipse?

Is there a way to make LogCat's output to appear in Console view in Eclipse?

LogCat中的观点是不太方便的控制台,因为它是很难看到长消息在它(它们被列边界修剪),并没有可点击突出显示异常堆栈跟踪快速导航到错误的来源。

LogCat view is much less convenient that Console, because it's hard to see long messages in it (they are trimmed by column border) and there are no clickable highlighting in exception stack traces to quickly navigate to source of error.

只是为了清楚 - 我想有点击的踪迹,像在正常的Ec​​lipse控制台这样我就可以快速定位到错误的原因

Just to make clear - I'd like to have clickable stacktraces, like the ones in normal Eclipse console so I can quickly navigate to the source of error.

推荐答案

需要一个额外的步骤,但你可以复制并粘贴到控制台堆栈跟踪查看,然后你得到的可点击的链接。只要从logcat中,复制任何或所有行,并将其粘贴在控制台(在控制台中显示按钮选择Java堆栈跟踪在前)。

Requires an extra step, but you can copy and paste into the Console Stack Trace View, and you then get the clickable links. Just select any or all lines from Logcat, copy, and paste them in the Console (select Java Stack Trace in the Console Display button first).