User forums > Help

Cannot debug large arrays

<< < (2/3) > >>

salexandru:
Thank you for your help but it still doesn't work. The option was already on "Unlimited". Please see the photo in the attachments.

oBFusCATed:
Then it is some gdb thing and some setting.
This command fixes it for me.

--- Code: ---set max-value-size unlimited

--- End code ---

But, are you really sure you want to see in the ui so many elements better approach is to just view parts of the array. See the options in right click->properties menu for the watch.

salexandru:
It's easier for me to see all an array's elements in one debug space instead of manually typing array[0], array[1], array[2] ... every time. Where exactly should I enter this command?

BlueHazzard:

--- Quote from: salexandru on January 16, 2018, 04:45:06 pm ---Where exactly should I enter this command?

--- End quote ---
In the debugger tab of the log windows at the bottom is a text control. Enter the gdb command and hit enter. But note: This will be painfull slow....


--- Quote from: salexandru on January 16, 2018, 04:45:06 pm ---It's easier for me to see all an array's elements in one debug space instead of manually typing array[0], array[1], array[2] ... every time.

--- End quote ---
You do not have to do this by hand. As Obfuscated hinted you can a start point and a range in the properties of the watch....

salexandru:
Thanks a lot. It worked! One more thing though: can I make this change persistent so that I can debug without entering everytime gdb set...?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version