print widget type for error debugging