debug Rules
dump
dump(obj, obj_name)
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
obj |
Object to dump |
obj_name |
Name to print for that object |