I’d like to run inspect on some object, but unfortunately it’s either linking to some really big objects, or has a circular reference. That results in many pages of output.
Is there some way to limit the level of recursion that inspect is allowed to do?
No, you might want to use either prettyprint module for a ‘different’ visualisation (require ‘pp’; pp object) or write something yourself. To write a generic dumper is quite difficult since everyone has different needs (dump binary blobs? dump strings up to which length? dump graphs with cycles? dump up to which level? …).