Debug class implementation