def EnumAndLogControlAncestors(control: Control, showAllName: bool = True) -> None:
lists = []<EOL>while control:<EOL><INDENT>lists.insert(<NUM_LIT:0>, control)<EOL>control = control.GetParentControl()<EOL><DEDENT>for i, control in enumerate(lists):<EOL><INDENT>LogControl(control, i, showAllName)<EOL><DEDENT>
Print and log control and its ancestors' propertyies.
control: `Control` or its subclass.
showAllName: bool, if False, print the first 30 characters of control.Name.