[major] Implement debug