Copy large arrays to clipboard in intellij kotlin

已回答

I have large arrays and while at a breakpoint in the debugger I want to copy them to the clipboard.  So the array declaration (Kotlin) are like, 

pmt_trace = mutableListOf<DataTimePoint>() where the DataTimePoint class is, 

data class DataTimePoint (
    val time: Double,
    var data: Double)
 

or an array defined as,  var pmt_data: DoubleArray = doubleArrayOf()

These arrays are of the size 500000 elements.  Does Intellij Idea support copying these arrays to the clipboard while at a debugger breakpoint and if so how is this done?  Thanks.

0
The display and the clipboard allowed length of array elements depend on the memory consumption. We recommend you to add some codes to output these 500,000 elements into alocal file instead of clipboard.
0

I tested with a sample project, the main block is that IDEA cannot display all the elements in the console, like this.

0

Thanks.  I pretty much gave up on that idea, worked around it and moved on.  

0

请先登录再写评论。