Eavesdropper debugging tool for APIs