Set a debug category for each base class and element.