General debugging to model classes