ftp://sunsite.unc.edu/pub/linux/devel/debuggers/ddd-1.4*
This is a front-end to gdb (more advanced than the xgdb button helpers).
Fetch the precompiled elf binary (unless you have motif). You don't need the source, which is nice for 14.4K users, who want something to do whilst the other half isn't here.
gunzip ddd-1.4b.gz file ddd-1.4b ./ddd-1.4bOpen a program that you have previously compiled with -g. Open the source, put a break point in main. Run the program with arguments (simply type run args in the gdb text window). Single step to a function, then try the data options, Edit Display (new), var_name ...
If the Display is for a pointer variable, select Dereference, and the struct will be displayed as a box of lines to the right of the pointer box. You may need to rescale the display. Redraws are slow.
If X11 is already running, and gdb is available, it just runs. To untar the sources and docs, use:
tar -C /tmp/pkgs_ftp -zxf ddd-1.4b.tar.gz