Dumping a huge array in the Intellij-Idea debugger

Is there a way in Idea to dump the contents of a large array of ints to the clipboard?

'copy value' in the array returns nothing.

+4
source share
2 answers

To get the value on the clipboard using the copy value, you need to define a "Java Radeer Data Type Renderer" to interpret the contents of your array.

  • Right click on array variable
  • Choose "View As-> Create ..."
  • In the "Java Data Type Renderers" window, create a new record, set "When rendering a node, use the following expression" with Arrays.toString(this) .
  • Apply, select the array variable and Ctrl-C to get the contents.
+12
source
  • Right click on a variable
  • Calculate expression
  • Type *nameOfYourArray*.toString()
  • Choose grade
  • Ctrl-C to get content
0
source