Update debug code across the core