From 3cf55f763ef8c75e8e8c11fca3c3e564668aee52 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Nov 2014 17:53:18 -0800 Subject: Make it easier to debug scripts, especially from coredumps --- src/strings/rstring.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/strings') diff --git a/src/strings/rstring.py b/src/strings/rstring.py index 27e9ff2..75fe2db 100644 --- a/src/strings/rstring.py +++ b/src/strings/rstring.py @@ -1,3 +1,6 @@ +# used by other pretty-printers +rstring_disable_children = False + class RString(object): __slots__ = ('_value') name = 'tmwa::strings::RString' @@ -21,6 +24,8 @@ class RString(object): return b.lazy_string(length=d) def children(self): + if rstring_disable_children: + return v = self._value if v['maybe_end']: pass -- cgit v1.2.3-70-g09d2