Made debug object its own class