Pretty Printing (Debugging with GDB)

From Get docs
Gdb/docs/latest/gdb/Pretty-Printing /
Revision as of 03:26, 6 December 2021 by Notes (talk | contribs) (Page commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Next: Value History, Previous: Print Settings, Up: Data   [Contents][Index]



10.10 Pretty Printing

GDB provides a mechanism to allow pretty-printing of values using Python code. It greatly simplifies the display of complex objects. This mechanism works for both MI and the CLI.

Pretty-Printer Introduction:    Introduction to pretty-printers
Pretty-Printer Example:    An example pretty-printer
Pretty-Printer Commands:    Pretty-printer commands