Removed testing code from DebugObject

See previous commit for what was fixed.