Tweak debug() to use name of class in debug output