Re:Glom – Restructured Data for Python
by doublereedkurt on Thursday May 10, 2018 @10:14AM
(#17038992)
http://glom.readthedocs.io/en/latest/api.html#debugging
affordances to add tracing prints, or drop into a pdb at any level
The Inspect specifier type provides a way to get visibility into glom’s evaluation of a specification, enabling debugging of those tricky problems that may arise with unexpected data.
Inspect can be inserted into an existing spec in one of two ways. First, as a wrapper around the spec in question, or second, as an argument-less placeholder wherever a spec could be.
Inspect supports several modes, controlled by keyword arguments. Its default, no-argument mode, simply echos the state of the glom at the point where it appears:
Libraries like these shine only if they have brilliant tracing and debugging capabilities; otherwise are too easy to reduce to literally a single function.