Add debugging to `/sync` response generation (disabled by default).