User forums > Help

[solved]debugger, printing huge struct hangs debugger

<< < (2/2)

ollydbg:
If I remember correctly, GDB has some option to "disable" expanding the sub-fields of a struct.
Another way of solving this problem is write a simple Pretty printer for the struct(in the pretty printer, you can print any thing you want), see GDB's document for more informations. Writing pretty printer is not hard.

visir:
set print elements 3

It was set to unlimited before. Now it works.

https://sourceware.org/gdb/current/onlinedocs/gdb/Print-Settings.html#Print-Settings

Navigation

[0] Message Index

[*] Previous page

Go to full version