debugging chat app