'Eclipse export/print contents of debug variable

I use Eclipse for embedded project development (C language). I debug my project and in Expressions window I have an array (1024 x 2 integer elements). I want to export contents of this array to clipboard/file so I can process the data from the array in another software. Is that possible?



Solution 1:[1]

I have the same issue. My solution so far is to use the debug mode and to type in the debug console the command

print varName@number

whereas number gives you the number of elements to be display. In your case it should be

print array@1024

For me the debug console is the 5th ribbon on the console view at the bottom of the debug screen. This is advice from an eclipse newbie to another eclipse newbie, maybe someone has a better idea...

Solution 2:[2]

Found this article which describes a way to output the array into a .srec file format using the debug command.

dump srec value c:\\file\\to\\path\\name.srec arrayIwantToExport

If array exceeds 64 KB, you can increase the max value as described here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Art
Solution 2