Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mirai on September 07, 2020, 10:09:41 am

Title: Debugger - Watch as array - Start offset / size limits
Post by: mirai on September 07, 2020, 10:09:41 am
I'm trying to inspect a relatively small piece of a huge array and hitting upper limit for start offset  = 32000.
Is this a limitation of C::B or GDB or what?
Currently on 16.01 release.
Title: Re: Debugger - Watch as array - Start offset / size limits
Post by: BlueHazzard on September 07, 2020, 06:21:21 pm
What is the error you are getting?
What is the output of the full debug log (You have to enable it in the debugger settings)?
Have you tried your use case form the console with raw gdb?
Title: Re: Debugger - Watch as array - Start offset / size limits
Post by: oBFusCATed on September 07, 2020, 06:45:14 pm
Does it happen with 20.03 or 17.12. 16.01 is rather old release, newer releases have many of these assertions already fixed.
Title: Re: Debugger - Watch as array - Start offset / size limits
Post by: mirai on September 08, 2020, 12:20:42 am
What is the error you are getting?
None, C::B just silently resets any start offset greater than 32000 back to this number and displays wrong part of array.

What is the output of the full debug log (You have to enable it in the debugger settings)?
I don't know yet, I have to run C::B from a terminal and check if there's any output at all.

Have you tried your use case form the console with raw gdb?
I'm not that skilled with raw GDB, sorry, I have to look up command reference.
Title: Re: Debugger - Watch as array - Start offset / size limits
Post by: BlueHazzard on September 08, 2020, 08:36:53 am
Quote
I don't know yet, I have to run C::B from a terminal and check if there's any output at all.
There is a tab with the name "debugger log" near the "build messages" tab. There all debugger output gets logged if you enable it in Settings->Debugger->Common->Full Debug log

But as obfuscated pointed out, you should update to at least 20.XX