Follow-up Comment #1, bug #18661 (project wesnoth):
Setting up the pretty printers is simple.
1. Create a .gdbinit file in the directory where you startup wesnoth with at
least these lines:
#Load the wesnoth pretty-printers
python sys.path.append(os.path.abspath('utils/gdb/'))
python import wesnoth_gdb
2. Optionally add the following to suit your tastes:
#Set expanded printing on
set print pretty on
#Hide static members
set print static-members off
3. Run gdb
Now the pretty printing as shown below is enabled.
If foo if of type config, typing
print foo will show the pretty printed output.
If you want to see the raw output without pretty printing then type
print /r foo
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18661>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs