Author: Misha v.3, February 9, 2013 Tags: Debugging
I've long been using the convenient ^dstop[...] method from the Debug.p class, written by Grigory Zhizhilkin. I just felt like some functionality was missing — for instance, displaying user-defined objects and classes.
I added the functionality I needed, wrote a letter to the author, and got... silence in response. Oh well, I'm publishing the fork here — maybe it'll be useful to someone else too?
Changes relative to the original class:
- User-defined objects'/classes' contents are now displayed (fields, methods, hierarchy).
- Empty hashes, tables, and junctions are no longer displayed as void.
- Redid the display of the
fileandimageclasses. - Large objects can now be collapsed/expanded.
- Added protection against recursion for hashes/objects.
- Objects of the
xnodeclass are now displayed correctly (previously attributes weren't shown and the&character wasn't escaped). - Hashes/objects containing a
foreachfield/method are now displayed properly. - Minor optimizations.