User forums > Using Code::Blocks
Show local variables in the debugger
oBFusCATed:
--- Quote from: killerbot on August 03, 2013, 11:37:44 am ---it only occurs on windows ? or also on linux ?
--- End quote ---
Everywhere...
ollydbg:
--- Quote from: killerbot on August 03, 2013, 11:37:44 am ---it only occurs on windows ? or also on linux ?
--- End quote ---
On Windows, when pass a long value (this is a random value) to malloc function, it will failed, then GDB crashes, what my patch do is to limit the size passed to malloc function.
--- Code: ---+ if (length > local_opts.print_max)
+ length = local_opts.print_max;
--- End code ---
The value "ocal_opts.print_max = 200 " if you set on GDB command line: set print elements 200
I'm not sure how it works under Linux.
MortenMacFly:
--- Quote from: MortenMacFly on August 01, 2013, 08:56:33 am ---So please stay tuned... I'll post here.
--- End quote ---
Here it is, hopefully complete... sorry for the delay.
cbrmm:
MortenMacFly
Thanks so much. When trying to apply your patch, however, it doesn't work.
Looking closer it seems that you patch against rev. 7239 but the only 12.11 currently available is rev. 7291.
Detail: I'm on Mint 15 and an example of patchs complaints is a file "src/CodeBlocks_wx29-unix.cbp" that doesn't exist.
I'd very much appreciate if you could provide a working patch because using D (rather than C++) I can't see much other than ints and bools.
Having a way to at least see all locals would be of great help.
oBFusCATed:
--- Quote from: cbrmm on August 26, 2013, 07:59:21 am ---I'd very much appreciate if you could provide a working patch because using D (rather than C++) I can't see much other than ints and bools.
--- End quote ---
Can you explain what is the problem here? Post a debug log from the debugger?
If GDB can print D structs/classes then it should work out of the box.
p.s. I doubt this patch will help with solving you problem, because by looking at it I think it works for simple values and not for structs/classes/arrays/etc.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version