Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Print array in Debugger console(How to print content of an array with more than 200 items)
Print array in Debugger console [message #1822662] Wed, 11 March 2020 05:42 Go to next message
Petr Dvorak is currently offline Petr DvorakFriend
Messages: 2
Registered: March 2020
Junior Member
I searched in the documentation but I did not manage to find the answer.

Once the debug is paused user can print the content of a variable with print variable_name in the Debugger console.

In the case of an array, the command is the same print array_name but the listing is limited to 200 items only.

How can I set to print more items? In my case, I need to display 256 items for further processing in Octave.

Please see the attached image. In the debugger console window, there is an output of print array ending with item number 199, while in the Expressions tab, there is the same array with the resting 56 values.

Thank you for any help

[Updated on: Wed, 11 March 2020 19:47]

Report message to a moderator

Re: Print array in Debugger console [message #1822936 is a reply to message #1822662] Tue, 17 March 2020 05:46 Go to previous message
Petr Dvorak is currently offline Petr DvorakFriend
Messages: 2
Registered: March 2020
Junior Member
Hello there,

I have found a solution. It took me almost a week to realize the variable export is not serviced by the Eclipse Debugger console but by the GDB.

How to print the content of an array with more than 200 items?

* you have to split the output into more chunks with a maximal length of 200 items

Let us say we have the array variable with 256 items:

> print array[0]@100
> print array[100]@156
Previous Topic:How to generate one output file including all include files and the source file
Next Topic:Where is C99 setting or build settings at all in Eclipse 2019-12 (4.14.0) CDT 9.9.0.201909091956
Goto Forum:
  


Current Time: Thu Apr 25 04:11:30 GMT 2024

Powered by FUDForum. Page generated in 0.03826 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top