Debugging method that recursively prints object fields to stderr

Example Usage:

load("debug", "dump")
...
dump(ctx, "ctx")

Example Output:

WARNING: /code/rrrrr/subpar/debug.bzl:11:5:
ctx[ctx]:
    action[string]: <getattr(action) failed>
    attr[struct]:
        _action_listener[list]: []
        _compiler[RuleConfiguredTarget]:
            data_runfiles[runfiles]:

Attributes