在Intellij-Idea调试器中转储一个巨大的数组 [英] Dumping a huge array in Intellij-Idea debugger
本文介绍了在Intellij-Idea调试器中转储一个巨大的数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Idea中是否有一种方法可以将大量的内容转储到剪贴板中?
Is there a way in Idea to dump the content of a large - very - array of ints into the clipboard ?
数组上的'复制值'什么都不返回。
'copy value' on an array return nothing.
推荐答案
要使用复制值获取剪贴板中的值,需要定义Java数据类型渲染器来解释数组的内容。
To get the value in the clipboard using copy value, you need to define a "Java Data Type Renderer" to interpret the content of your array.
- 右键单击数组变量
- 选择查看为 - >创建...
- 在Java数据类型呈现器窗口中,创建一个新条目,使用
设置在渲染节点时,使用以下表达式 Arrays.toString(this)
。 - Apply,选择你的数组变量并执行
Ctrl-C
到获取内容。
- Right click on your array variable
- Select "View as->Create..."
- In the "Java Data Type Renderers" window, create a new entry, set "When rendering a node, use following expression" with
Arrays.toString(this)
. - Apply, select your array variable and do
Ctrl-C
to get the content.
这篇关于在Intellij-Idea调试器中转储一个巨大的数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文