api debugging