Implement debug setting everywhere